Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 12, 2024
1 parent 7ba4802 commit d4c5072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jaraco/collections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ def matching_key_for(self, key):
"""
try:
return next(e_key for e_key in self.keys() if e_key == key)
except StopIteration:
raise KeyError(key)
except StopIteration as err:
raise KeyError(key) from err


class FoldedCaseKeyedDict(KeyTransformingDict):
Expand Down

0 comments on commit d4c5072

Please sign in to comment.