Skip to content

Commit

Permalink
Bug fix: Catch all exceptions on incorrect response.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasotocerny committed Oct 31, 2018
1 parent 37b28b7 commit cafbcb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exponea_python_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def request(self, method, path, payload=None):
self.logger.debug('Response status code: %d', status)
try:
result = json.loads(response.text)
except JSONDecodeError:
except Exception:
self.logger.error(response.text)
raise APIException(response.text)
if status == 200 and result['success']:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='exponea-python-sdk',
version='0.1.7',
version='0.1.8',
author='Lukas Cerny',
author_email='lukas.cerny@exponea.com',
description='A Python client for Exponea Data API',
Expand Down

0 comments on commit cafbcb5

Please sign in to comment.