fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author publishing + fix.
[wolnelektury.git]
/
src
/
api
/
views.py
diff --git
a/src/api/views.py
b/src/api/views.py
index
6762fb1
..
be1491b
100644
(file)
--- 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:
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={
callback = request.GET.get('oauth_callback')
form = OAuthAuthenticationForm(initial={