[Enum] unchain exception property.__get__ (GH-103305)

This commit is contained in:
Ethan Furman 2023-04-05 21:30:11 -07:00 committed by GitHub
parent 6e3ee049ac
commit a44568b80d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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)