mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
[Enum] unchain exception property.__get__ (GH-103305)
This commit is contained in:
parent
6e3ee049ac
commit
a44568b80d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue