Skip to content

Commit

Permalink
Fix an accidental bug due to whitespace change
Browse files Browse the repository at this point in the history
  • Loading branch information
mverleg committed Jul 25, 2023
1 parent 7cef62b commit c0ffeee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json_tricks/decoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def __call__(self, pairs):
for key, value in pairs:
if key in known:
raise DuplicateJsonKeyException(('Trying to load a json map which contains a ' +
'duplicate key "{0:}" (but allow_duplicates is False)').format(key))
known.add(key)
'duplicate key "{0:}" (but allow_duplicates is False)').format(key))
known.add(key)
map = self.map_type(pairs)
for hook in self.obj_pairs_hooks:
map = hook(map, properties=self.properties)
Expand Down

0 comments on commit c0ffeee

Please sign in to comment.