Skip to content

Commit

Permalink
Fix error display
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 committed Aug 26, 2021
1 parent 3ce5bcd commit d354b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat/apps/engine/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ def create(self, request, *args, **kwargs):
msg_body = ""
for ex in exceptions.args:
for field, ex_msg in ex.items():
msg_body += ": ".join([field, str(ex_msg[0])])
msg_body += ': '.join([field, ex_msg if isinstance(ex_msg, str) else str(ex_msg[0])])
msg_body += '\n'
return HttpResponseBadRequest(msg_body)
except APIException as ex:
Expand Down

0 comments on commit d354b18

Please sign in to comment.