mirror of
https://github.com/retailcrm/api-client-python.git
synced 2025-04-01 20:26:10 +03:00
Merge pull request #13 from Alkalit/master
правильная проверка на ошибки
This commit is contained in:
commit
d4bed324d3
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue