Catch 'PermissionError' for unreadable directories

This commit is contained in:
Adrian Labbé
2020-12-05 21:00:28 -03:00
parent 69750b9bf0
commit 83d4ec9e84
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -366,8 +366,11 @@ class Project:
def _is_potential_project(path):
for name in _CONTAINS_POTENTIAL_PROJECT:
if path.joinpath(name).exists():
return True
try:
if path.joinpath(name).exists():
return True
except PermissionError:
continue
return False