mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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.
This commit is contained in:
parent
f52c2c63cd
commit
1d6569cfb9
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ class _SourceFileLoader(_FileLoader, SourceLoader):
|
||||||
continue
|
continue
|
||||||
# If can't get proper access, then just forget about writing
|
# If can't get proper access, then just forget about writing
|
||||||
# the data.
|
# the data.
|
||||||
elif errno == errno.EACCES:
|
elif exc.errno == errno.EACCES:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue