Catch 'OSError' instead of just 'PermissionError'

This commit is contained in:
Adrian Labbé committed 2020-12-06 15:25:46 -03:00
1 parent 83d4ec9e84
commit 12a2d10595
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -369,7 +369,7 @@ def _is_potential_project(path):
try:
if path.joinpath(name).exists():
return True
except PermissionError:
except OSError:
continue
return False