Catch 'OSError' instead of just 'PermissionError'
This commit is contained in:
1 parent
83d4ec9e84
commit
12a2d10595
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -369,7 +369,7 @@ def _is_potential_project(path):
|
||||
try:
|
||||
if path.joinpath(name).exists():
|
||||
return True
|
||||
except PermissionError:
|
||||
except OSError:
|
||||
continue
|
||||
return False
|
||||
|
||||
|
||||
Reference in new issue
Block a user