mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-28 17:32:35 +00:00
Fixed error with exception handling
This commit is contained in:
@@ -19,8 +19,8 @@ def sendEmail(email, sender, recipient, subject, smtpServer='localhost'):
|
||||
s.send_message(email)
|
||||
s.quit()
|
||||
return True
|
||||
except exception:
|
||||
print("Send Failed, {}".format(exception))
|
||||
except Exception as e:
|
||||
print("Send Failed, {}".format(e))
|
||||
sys.exit(2)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user