• Use writeToFile in exception clause (suggestion from @furkansandal).

This commit is contained in:
Gilles BOUVIER 2020-12-27 11:34:59 -08:00
parent 84ded63fe5
commit bfc57ec036
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class CyberCPLogFileWriter:
return message
except BaseException as msg:
return "Can not add From header to message."
CyberCPLogFileWriter.writeToFile(str(msg) + ' [AddFromHeader]')
@staticmethod
def SendEmail(sender, receivers, message, subject=None, type=None):