Skip to content

Commit bb0b645

Browse files
authored
Merge pull request GetStream#35 from GetStream/fix-issue-33
Fixed raise_exception to type check exception_fields input
2 parents 39435ef + a20f411 commit bb0b645

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎stream/client.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ def raise_exception(self, result, status_code):
180180

181181
def errors_from_fields(exception_fields):
182182
result = []
183+
if not isinstance(exception_fields, list):
184+
return exception_fields
185+
183186
for field, errors in exception_fields.items():
184187
errors.append('Field "%s" errors: %s' % (field, repr(errors)))
185188
return result

0 commit comments

Comments
 (0)