Better value error
This commit is contained in:
parent
75461cb110
commit
b67e02cceb
1 changed files with 1 additions and 2 deletions
|
|
@ -381,8 +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
|
||||
raise ValueError("No table found")
|
||||
hash_key, range_key = self.get_keys_value(table, keys)
|
||||
return table.get_item(hash_key, range_key)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue