Skip to content

Commit ea80bf2

Browse files
committed
mixins: raise ServerError with kwargs only
1 parent c35b97c commit ea80bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/httpapiclient/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def clean_response(self, response, request):
4141
try:
4242
Draft4Validator(schema).validate(result)
4343
except ValidationError as e:
44-
raise self.ServerError(e, schema=schema, level='json')
44+
raise self.ServerError(description=str(e), schema=schema, level='json')
4545

4646
return result
4747

0 commit comments

Comments
 (0)