Permalink
Browse files

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

…ango

git-svn-id: http://django-notification.googlecode.com/svn/trunk@91 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information...
1 parent bfcaead commit 43708b181715a712bb9aa1854f0f956219053b0f @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 43708b1

Please sign in to comment.