Skip to content

Commit 0e84774

Browse files
committed
unchain exception
1 parent 281d835 commit 0e84774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/enum.py

Lines changed: 1 addition & 1 deletion
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)