]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Enum] unchain exception property.__get__ (GH-103305)
authorEthan Furman <ethan@stoneleaf.us>
Thu, 6 Apr 2023 04:30:11 +0000 (21:30 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Apr 2023 04:30:11 +0000 (21:30 -0700)
Lib/enum.py

index 0b0629cf9205068ed815fe1f569e52287300c901..10902c4b202a2d1016e36481d8309c57cb971762 100644 (file)
@@ -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)