mirror of https://github.com/python/cpython.git
[Enum] unchain exception property.__get__ (GH-103305)
This commit is contained in:
parent
6e3ee049ac
commit
a44568b80d
|
@ -207,7 +207,7 @@ def __get__(self, instance, ownerclass=None):
|
||||||
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…
Reference in New Issue