mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-21 20:46:03 +03:00
правильная проверка на ошибки
This commit is contained in:
parent
09c6a496e3
commit
cfb2bb80db
@ -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