mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-29 18:02: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.send_message(email)
|
||||||
s.quit()
|
s.quit()
|
||||||
return True
|
return True
|
||||||
except exception:
|
except Exception as e:
|
||||||
print("Send Failed, {}".format(exception))
|
print("Send Failed, {}".format(e))
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user