Skip to content

Commit

Permalink
Add log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mortal committed May 17, 2017
1 parent 4da82b5 commit 95bbc26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tutormail/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def get_groups(self, recipient):
try:
group_names = resolve_alias(recipient)
except Exception:
logging.exception("resolve_alias raised an exception - " +
"reconnecting to the database and trying again")
# https://code.djangoproject.com/ticket/21597#comment:29
from django.db import connection
connection.close()
Expand Down

0 comments on commit 95bbc26

Please sign in to comment.