From cfb2bb80dbc3c21c94c4d547844a0b7f68d17e16 Mon Sep 17 00:00:00 2001 From: Alexey Kalinin Date: Wed, 8 Jan 2020 18:49:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- retailcrm/response.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retailcrm/response.py b/retailcrm/response.py index 0abec50..2827bd4 100644 --- a/retailcrm/response.py +++ b/retailcrm/response.py @@ -42,7 +42,7 @@ class Response(object): """ :return: collection """ - errors = { - } if not self.__response_body['errors'] else self.__response_body['errors'] + + errors = self.__response_body.get('errors', {}) return errors