Skip to content

Commit a44568b

Browse files
authored
[Enum] unchain exception property.__get__ (GH-103305)
1 parent 6e3ee04 commit a44568b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/enum.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def __get__(self, instance, ownerclass=None):
207207
except KeyError:
208208
raise AttributeError(
209209
'%r has no attribute %r' % (ownerclass, self.name)
210-
)
210+
) from None
211211
else:
212212
return self.fget(instance)
213213

0 commit comments

Comments
 (0)