Commit b41095c9 authored by Michal Čihař's avatar Michal Čihař

Do not need exception value;

parent 48fbe4f1
......@@ -41,7 +41,7 @@ def set_lang(sender, **kwargs):
user = kwargs['user']
try:
profile = user.get_profile()
except Profile.DoesNotExist, e:
except Profile.DoesNotExist:
profile, newprofile = Profile.objects.get_or_create(user = user)
if newprofile:
messages.info(request, gettext('Your profile has been migrated, you might want to adjust preferences.'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment