From: Ethan Furman Date: Thu, 6 Apr 2023 04:30:11 +0000 (-0700) Subject: [Enum] unchain exception property.__get__ (GH-103305) X-Git-Tag: v3.12.0b1~631 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a44568b80dfc494759d45db59423ed314bc70f9e;p=thirdparty%2FPython%2Fcpython.git [Enum] unchain exception property.__get__ (GH-103305) --- 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 @@ class property(DynamicClassAttribute): except KeyError: raise AttributeError( '%r has no attribute %r' % (ownerclass, self.name) - ) + ) from None else: return self.fget(instance)