From a44568b80dfc494759d45db59423ed314bc70f9e Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Wed, 5 Apr 2023 21:30:11 -0700 Subject: [Enum] unchain exception property.__get__ (GH-103305) --- Lib/enum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/enum.py b/Lib/enum.py index 0b0629c..10902c4 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -207,7 +207,7 @@ class property(DynamicClassAttribute): except KeyError: raise AttributeError( '%r has no attribute %r' % (ownerclass, self.name) - ) + ) from None else: return self.fget(instance) -- cgit v0.12