Permalink
Browse files

added additional exception for profile loading because of a bug in Dj…

…ango

git-svn-id: https://django-notification.googlecode.com/svn/trunk@91 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
1 parent 1310e11 commit 270f71e58ec38607895e40de20df44c53a732c59 @jezdez jezdez committed Aug 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 notification/models.py
View
2 notification/models.py
@@ -216,7 +216,7 @@ def send(recipient, label, extra_context={}, issue_notice=True):
# get user profiles if available
try:
profile = user.get_profile()
- except SiteProfileNotAvailable:
+ except (SiteProfileNotAvailable, AttributeError):
profile = None
# activate language of user to send message translated

0 comments on commit 270f71e

Please sign in to comment.