Skip to content

Commit

Permalink
Merge pull request #133 from hauntsaninja/hauntsaninja-patch-1
Browse files Browse the repository at this point in the history
[minor] Improve exception chaining
  • Loading branch information
frostming committed Aug 4, 2023
2 parents ea4011b + 60004d2 commit 77b256c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvelib/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def _backjump(self, causes):
broken_state = self._states.pop()
name, candidate = broken_state.mapping.popitem()
except (IndexError, KeyError):
raise ResolutionImpossible(causes)
raise ResolutionImpossible(causes) from None
current_dependencies = {
self._p.identify(d)
for d in self._p.get_dependencies(candidate)
Expand Down

0 comments on commit 77b256c

Please sign in to comment.