From a44568b80dfc494759d45db59423ed314bc70f9e Mon Sep 17 00:00:00 2001 From: Ethan Furman Date: Wed, 5 Apr 2023 21:30:11 -0700 Subject: [PATCH] [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 0b0629cf9205..10902c4b202a 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -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)