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

Handle Message as a key in errors

parent f886c1ed
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -21,7 +21,7 @@ DESC = 'A low-level Amazon Web Services API client for Tornado'
TESTS_REQUIRE = ['nose', 'mock', 'coverage']
 
setuptools.setup(name='tornado-aws',
version='0.4.4',
version='0.4.5',
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.4.4'
__version__ = '0.4.5'
 
__all__ = ['AWSClient', 'AsyncAWSClient', 'exceptions']
Loading
Loading
@@ -496,12 +496,12 @@ class AsyncAWSClient(AWSClient):
headers, body, True)
self._ioloop.add_future(request, on_retry)
return
if 'message' not in awz_error:
msg = aws_error.get('message', aws_error.get('Message'))
if not msg:
LOGGER.debug('awz_error without message: %r',
awz_error)
exception = exceptions.AWSError(
type=awz_error['__type'],
message=awz_error.get('message'))
type=awz_error['__type'], message=msg)
future.set_exception(exception)
else:
future.set_result(response.result())
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