X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8952b9530d943655e552ea660c47e850123c5105..ea7671fcbd5bd829b16771670263aebaf29c69c1:/src/api/views.py?ds=sidebyside 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={