Skip to content

Commit

Permalink
Merge pull request krvss#6 from oksana-slu/master
Browse files Browse the repository at this point in the history
Заменила один ексепшин другим
  • Loading branch information
krvss committed Apr 4, 2012
2 parents 041354b + cef9a80 commit c462d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions social_auth/views.py
Expand Up @@ -20,7 +20,7 @@
from social_auth.utils import sanitize_redirect, setting, log, \
backend_setting, clean_partial_pipeline

from social_auth.backends.exceptions import AuthFailed
from social_auth.backends.exceptions import AuthFailed, AuthException

DEFAULT_REDIRECT = setting('SOCIAL_AUTH_LOGIN_REDIRECT_URL') or \
setting('LOGIN_REDIRECT_URL')
Expand Down Expand Up @@ -51,7 +51,7 @@ def wrapper(request, backend, *args, **kwargs):

try:
return func(request, backend, *args, **kwargs)
except AuthFailed, e:
except AuthException, e:
backend_name = backend.AUTH_BACKEND.name
if 'django.contrib.messages' in setting('INSTALLED_APPS'):
from django.contrib.messages.api import error
Expand Down

0 comments on commit c462d08

Please sign in to comment.