mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-18 21:42:06 +01:00
• Use writeToFile in exception clause (suggestion from @furkansandal).
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user