From b67e02ccebf9b7f2752eed3ce220b93c41a0890b Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Tue, 14 Jul 2015 21:27:49 -0400 Subject: [PATCH] Better value error --- moto/dynamodb2/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moto/dynamodb2/models.py b/moto/dynamodb2/models.py index 7989c6cd..eb7b4494 100644 --- a/moto/dynamodb2/models.py +++ b/moto/dynamodb2/models.py @@ -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)