mirror of
https://github.com/fergalmoran/dss.api.git
synced 2025-12-22 17:28:55 +00:00
Python 3 upgrade finished
This commit is contained in:
@@ -36,11 +36,11 @@ class SocialLoginHandler(APIView):
|
||||
if auth_token and backend:
|
||||
try:
|
||||
user = auth_by_token(request, backend)
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
return Response({
|
||||
'status': 'Bad request',
|
||||
'message': e.message
|
||||
'message': e
|
||||
}, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
if user:
|
||||
|
||||
Reference in New Issue
Block a user