Fix dynamo item not found.

This commit is contained in:
Steve Pulec 2015-07-13 10:33:36 -04:00
commit c9db7765df
3 changed files with 11 additions and 3 deletions

View file

@ -381,6 +381,7 @@ class DynamoDBBackend(BaseBackend):
def get_item(self, table_name, keys):
table = self.get_table(table_name)
if not table:
raise ValueError()
return None
hash_key, range_key = self.get_keys_value(table, keys)
return table.get_item(hash_key, range_key)