X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8952b9530d943655e552ea660c47e850123c5105..ddf2102eff7ea420a4ea5144c43409587fc1156e:/src/api/views.py diff --git a/src/api/views.py b/src/api/views.py index 6762fb1da..be1491b6f 100644 --- a/src/api/views.py +++ b/src/api/views.py @@ -75,7 +75,7 @@ def oauth_user_auth(request): realms, credentials = endpoint.get_realms_and_credentials( **oauthlib_request(request)) except OAuth1Error as e: - return HttpResponse(e.message, status=400) + return HttpResponse(str(e), status=400) callback = request.GET.get('oauth_callback') form = OAuthAuthenticationForm(initial={