Skip to content

Commit

Permalink
Fixed exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jan 18, 2013
1 parent d666d1c commit aacdedb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion account/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import operator
import urllib
import logging
import traceback

from django.core.mail import send_mail
from django.core.urlresolvers import reverse
Expand Down Expand Up @@ -362,7 +363,7 @@ def expunge(cls, hours_ago=None):
count += 1
except Exception as e:
logger.error("Failed to delete user %s", account_deletion.user)
logger.error("%s", e.extract_stack())
logger.error("%s", traceback.format_exc())
return count

@classmethod
Expand Down

0 comments on commit aacdedb

Please sign in to comment.