mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +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:
|
except KeyError:
|
||||||
raise AttributeError(
|
raise AttributeError(
|
||||||
'%r has no attribute %r' % (ownerclass, self.name)
|
'%r has no attribute %r' % (ownerclass, self.name)
|
||||||
)
|
) from None
|
||||||
else:
|
else:
|
||||||
return self.fget(instance)
|
return self.fget(instance)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue