Skip to content

Commit 97b6514

Browse files
committed
Fix a too-specific exception message
1 parent 755472f commit 97b6514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydanticrud/backends/dynamodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def _key_param_to_dict(self, key):
233233
}
234234
if self.range_key:
235235
if not isinstance(key, tuple) or not len(key) == 2:
236-
raise ValueError(f"{self.table_name} needs both a hash_key and a range_key to delete a record.")
236+
raise ValueError(f"{self.table_name} needs both a hash_key and a range_key.")
237237
_key = {
238238
self.hash_key: key[0],
239239
self.range_key: key[1]

0 commit comments

Comments
 (0)