Fixed error with exception handling

This commit is contained in:
Logan Lipke
2020-06-16 12:10:14 -07:00
parent 546392b8d6
commit 6fbb7d026f

View File

@@ -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)