Skip to content

Commit

Permalink
DynamoDBValidationError are not retryable
Browse files Browse the repository at this point in the history
  • Loading branch information
kopertop committed Aug 15, 2016
1 parent e13b2e1 commit 70c387c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions botoweb/db/dynamo.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def get_by_id(cls, hash_key, range_key=None, consistent_read=False):
)
except exceptions.DynamoDBKeyNotFoundError:
return None
except exceptions.DynamoDBValidationError:
raise
except DynamoDBResponseError, e:
log.exception('Could not retrieve item')
cls._table = None
Expand Down

0 comments on commit 70c387c

Please sign in to comment.