mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-25 06:26:04 +03:00
Merge pull request #13 from Alkalit/master
правильная проверка на ошибки
This commit is contained in:
commit
d4bed324d3
@ -42,7 +42,7 @@ class Response(object):
|
|||||||
"""
|
"""
|
||||||
:return: collection
|
:return: collection
|
||||||
"""
|
"""
|
||||||
errors = {
|
|
||||||
} if not self.__response_body['errors'] else self.__response_body['errors']
|
errors = self.__response_body.get('errors', {})
|
||||||
|
|
||||||
return errors
|
return errors
|
||||||
|
Loading…
Reference in New Issue
Block a user