Skip to content

Commit 96dfc9e

Browse files
committed
Cosmetic.
1 parent 3b1656a commit 96dfc9e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/downloader/file_system.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,9 @@ def precache_is_file_with_folders(self, folders: List[PathPackage], recheck: boo
298298
except Exception as e:
299299
self._logger.debug('precache_is_file_with_folders error:', e)
300300
for folder_pkg in not_checked_folders:
301-
try:
302-
self._shared_state.add_many_files([f.path for f in os.scandir(folder_pkg.full_path) if f.is_file()])
303-
except OSError:
304-
continue
305-
except Exception as e:
306-
return
301+
try: self._shared_state.add_many_files([f.path for f in os.scandir(folder_pkg.full_path) if f.is_file()])
302+
except OSError: continue
303+
except Exception as e: return
307304

308305
def read_file_contents(self, path: str) -> str:
309306
full_path = self._path(path)

0 commit comments

Comments
 (0)