правильная проверка на ошибки

This commit is contained in:
Alexey Kalinin 2020-01-08 18:49:10 +03:00
parent 09c6a496e3
commit cfb2bb80db

View File

@ -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