forked from VimPlug/jedi
Catch 'OSError' instead of just 'PermissionError'
This commit is contained in:
@@ -174,7 +174,7 @@ def _get_parent_dir_with_file(path: Path, filename):
|
||||
try:
|
||||
if parent.joinpath(filename).is_file():
|
||||
return parent
|
||||
except PermissionError:
|
||||
except OSError:
|
||||
continue
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user