mirror of
https://github.com/sprockets/sprockets.clients.dynamodb.git
synced 2024-11-23 19:29:51 +00:00
Wrong exception
This commit is contained in:
parent
e4928b1cff
commit
69888b6b71
1 changed files with 4 additions and 3 deletions
|
@ -104,9 +104,10 @@ class DynamoDB(object):
|
||||||
if http_err.code == 599:
|
if http_err.code == 599:
|
||||||
future.set_exception(exceptions.TimeoutException())
|
future.set_exception(exceptions.TimeoutException())
|
||||||
else:
|
else:
|
||||||
response_reason = err.code
|
response_reason = http_err.code
|
||||||
if err.response and hasattr(err.response, 'body'):
|
if http_err.response and \
|
||||||
response_reason = err.response.body
|
hasattr(http_err.response, 'body'):
|
||||||
|
response_reason = http_err.response.body
|
||||||
future.set_exception(response_reason)
|
future.set_exception(response_reason)
|
||||||
except Exception as exception:
|
except Exception as exception:
|
||||||
future.set_exception(exception)
|
future.set_exception(exception)
|
||||||
|
|
Loading…
Reference in a new issue