Skip to content

Commit

Permalink
Fix error message (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst authored Feb 12, 2021
1 parent 6a75cf4 commit f4e228b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynamodb/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def __init__(
"""
if hash_key is not None:
if self._hash_keyname is None:
raise ValueError(f"This model has no hash key, but a hash key value was provided: {range_key}")
raise ValueError(f"This model has no hash key, but a hash key value was provided: {hash_key}")
attributes[self._hash_keyname] = hash_key
if range_key is not None:
if self._range_keyname is None:
Expand Down

0 comments on commit f4e228b

Please sign in to comment.