Code refactoring and improved error handling for edit user list
Update teststatus
This commit is contained in:
@@ -75,8 +75,8 @@ class TaskConvert(CalibreTask):
|
||||
self.settings['body'],
|
||||
internal=True)
|
||||
)
|
||||
except Exception as e:
|
||||
return self._handleError(str(e))
|
||||
except Exception as ex:
|
||||
return self._handleError(str(ex))
|
||||
|
||||
def _convert_ebook_format(self):
|
||||
error_message = None
|
||||
|
||||
+3
-3
@@ -158,9 +158,9 @@ class TaskEmail(CalibreTask):
|
||||
except socket.error as e:
|
||||
log.debug_or_exception(e)
|
||||
self._handleError(u'Socket Error sending email: {}'.format(e.strerror))
|
||||
except Exception as e:
|
||||
log.debug_or_exception(e)
|
||||
self._handleError(u'Error sending email: {}'.format(e))
|
||||
except Exception as ex:
|
||||
log.debug_or_exception(ex)
|
||||
self._handleError(u'Error sending email: {}'.format(ex))
|
||||
|
||||
|
||||
def send_standard_email(self, msg):
|
||||
|
||||
Reference in New Issue
Block a user