Skip to content

Commit b2c8fc9

Browse files
committed
Mejora en control de error en client
1 parent 9192214 commit b2c8fc9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apigatewaycl/api_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def __check_and_return_response(self, response):
157157
'message', ''
158158
) or error.get(
159159
'exception', ''
160-
) or 'Error desconocido.'
160+
) or json.dumps(error) or 'Error desconocido.'
161161
except json.decoder.JSONDecodeError:
162162
message = 'Error al decodificar los datos en JSON: %(response)s' % {
163163
'response': response.text

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
name='apigatewaycl',
3535

3636
# Versions should comply with PEP440
37-
version='5.4.1',
37+
version='5.4.2',
3838

3939
description='Cliente para realizar la integración con los servicios web de API Gateway desde Python.',
4040
long_description="\n"+long_description,

0 commit comments

Comments
 (0)