diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2023-04-06 04:30:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 04:30:11 (GMT) |
commit | a44568b80dfc494759d45db59423ed314bc70f9e (patch) | |
tree | 9fff52ca5a5498265e79f103932d85645ffba512 /Lib/enum.py | |
parent | 6e3ee049ace60beb97784f10099ae399efd83bac (diff) | |
download | cpython-a44568b80dfc494759d45db59423ed314bc70f9e.zip cpython-a44568b80dfc494759d45db59423ed314bc70f9e.tar.gz cpython-a44568b80dfc494759d45db59423ed314bc70f9e.tar.bz2 |
[Enum] unchain exception property.__get__ (GH-103305)
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |