We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 403a4b2 commit 536bed6Copy full SHA for 536bed6
rest_framework_json_api/exceptions.py
@@ -27,7 +27,8 @@ def exception_handler(exc, context):
27
field = format_value(field)
28
pointer = '/data/attributes/{}'.format(field)
29
# see if they passed a dictionary to ValidationError manually
30
- if isinstance(error, dict):
+ # or a string in case of AuthenticationError
31
+ if isinstance(error, dict) or isinstance(error, str):
32
errors.append(error)
33
else:
34
for message in error:
0 commit comments