Better value error
This commit is contained in:
parent
c9db7765df
commit
4faf2673e5
@ -381,8 +381,7 @@ class DynamoDBBackend(BaseBackend):
|
|||||||
def get_item(self, table_name, keys):
|
def get_item(self, table_name, keys):
|
||||||
table = self.get_table(table_name)
|
table = self.get_table(table_name)
|
||||||
if not table:
|
if not table:
|
||||||
raise ValueError()
|
raise ValueError("No table found")
|
||||||
return None
|
|
||||||
hash_key, range_key = self.get_keys_value(table, keys)
|
hash_key, range_key = self.get_keys_value(table, keys)
|
||||||
return table.get_item(hash_key, range_key)
|
return table.get_item(hash_key, range_key)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user