Skip to content

Commit

Permalink
added additional exception for profile loading because of a bug in Dj…
Browse files Browse the repository at this point in the history
…ango

git-svn-id: https://django-notification.googlecode.com/svn/trunk@91 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information
jezdez committed Aug 15, 2008
1 parent 1310e11 commit 270f71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notification/models.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def send(recipient, label, extra_context={}, issue_notice=True):
# get user profiles if available # get user profiles if available
try: try:
profile = user.get_profile() profile = user.get_profile()
except SiteProfileNotAvailable: except (SiteProfileNotAvailable, AttributeError):
profile = None profile = None


# activate language of user to send message translated # activate language of user to send message translated
Expand Down

0 comments on commit 270f71e

Please sign in to comment.