mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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
|
||||
# If can't get proper access, then just forget about writing
|
||||
# the data.
|
||||
elif errno == errno.EACCES:
|
||||
elif exc.errno == errno.EACCES:
|
||||
return
|
||||
else:
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue