mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
p3
This commit is contained in:
@@ -14,7 +14,7 @@ class BackupUtil:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
except BaseException, msg:
|
||||
except BaseException as msg:
|
||||
return 0
|
||||
|
||||
@staticmethod
|
||||
@@ -25,9 +25,9 @@ class BackupUtil:
|
||||
try:
|
||||
smtpObj = smtplib.SMTP('127.0.0.1')
|
||||
smtpObj.sendmail(sender, receivers, message)
|
||||
print "Successfully sent email"
|
||||
except BaseException, msg:
|
||||
print "Error: unable to send email %s" % str(msg)
|
||||
print("Successfully sent email")
|
||||
except BaseException as msg:
|
||||
print("Error: unable to send email %s" % str(msg))
|
||||
|
||||
@staticmethod
|
||||
def SyncHome():
|
||||
|
||||
Reference in New Issue
Block a user