Skip to content
Snippets Groups Projects
Commit 660b34bb authored by Gavin M. Roy's avatar Gavin M. Roy
Browse files

Error has no response

parent 2ed2a806
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3,6 +3,10 @@
Version History
===============
 
0.7.2 (2017-06-03)
------------------
- What type of error is it if it has no response? Odd.
0.7.1 (2017-06-02)
------------------
- Getting error response back that we can't decode, log it
Loading
Loading
Loading
Loading
@@ -39,7 +39,7 @@ def read_requirements(name):
 
setuptools.setup(
name='tornado-aws',
version='0.7.1',
version='0.7.2',
description=DESC,
long_description=open('README.rst').read(),
author='Gavin M. Roy',
Loading
Loading
Loading
Loading
@@ -6,6 +6,6 @@ from tornado_aws.client import AWSClient
from tornado_aws.client import AsyncAWSClient
from tornado_aws.client import exceptions
 
__version__ = '0.7.1'
__version__ = '0.7.2'
 
__all__ = ['AWSClient', 'AsyncAWSClient', 'exceptions']
Loading
Loading
@@ -183,6 +183,9 @@ class AWSClient(object):
"""
if not isinstance(error, httpclient.HTTPError):
return
elif not hasattr(error, 'response'):
LOGGER.error('Error has no response: %r', error)
return
if error.code == 400:
try:
payload = json.loads(error.response.body.decode('utf-8'))
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment