[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
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ def __get__(self, instance, ownerclass=None):
except KeyError:
raise AttributeError(
'%r has no attribute %r' % (ownerclass, self.name)
)
) from None
else:
return self.fget(instance)