Skip to content
Snippets Groups Projects
Verified Commit 9a261f92 authored by nd's avatar nd
Browse files

fixed SMTPException not found

parent 86e2cd39
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,6 @@ def send_mail(to_address, msg):
server.send_message(msg)
server.quit()
return True
except SMTPException:
except smtplib.SMTPException:
flash('Mail to "{}" could not be sent!'.format(to_address))
return False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment