Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 270f71e58ec38607895e40de20df44c53a732c59 1 parent 1310e11
@jezdez jezdez authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.