Skip to content

Commit 1b4bd19

Browse files
committed
added AttributeError case
1 parent a01af74 commit 1b4bd19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mslib/utils/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def send_email(to, subject, template):
126126
)
127127
try:
128128
current_app.mail.send(msg)
129-
except IOError:
129+
except (IOError, AttributeError):
130130
logging.error("Can't send email to %s", to)
131131
else:
132132
logging.debug("setup user verification by email")

0 commit comments

Comments
 (0)