Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d6569c

Browse files
committed
Fix a bug where an attribute was lacking an object to work off of.
Related to the fix for issue #9572. Thanks to Łukasz Czuja for catching the bug.
1 parent f52c2c6 commit 1d6569c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/importlib/_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def set_data(self, path, data):
499499
continue
500500
# If can't get proper access, then just forget about writing
501501
# the data.
502-
elif errno == errno.EACCES:
502+
elif exc.errno == errno.EACCES:
503503
return
504504
else:
505505
raise

0 commit comments

Comments
 (0)