Skip to content

Commit

Permalink
[Enum] unchain exception property.__get__ (pythonGH-103305)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfurman authored and warsaw committed Apr 11, 2023
1 parent a203112 commit eda9042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def __get__(self, instance, ownerclass=None):
except KeyError:
raise AttributeError(
'%r has no attribute %r' % (ownerclass, self.name)
)
) from None
else:
return self.fget(instance)

Expand Down

0 comments on commit eda9042

Please sign in to comment.