Skip to content

Commit

Permalink
Cosmetic.
Browse files Browse the repository at this point in the history
  • Loading branch information
theypsilon committed Feb 11, 2025
1 parent 3b1656a commit 96dfc9e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/downloader/file_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,9 @@ def precache_is_file_with_folders(self, folders: List[PathPackage], recheck: boo
except Exception as e:
self._logger.debug('precache_is_file_with_folders error:', e)
for folder_pkg in not_checked_folders:
try:
self._shared_state.add_many_files([f.path for f in os.scandir(folder_pkg.full_path) if f.is_file()])
except OSError:
continue
except Exception as e:
return
try: self._shared_state.add_many_files([f.path for f in os.scandir(folder_pkg.full_path) if f.is_file()])
except OSError: continue
except Exception as e: return

def read_file_contents(self, path: str) -> str:
full_path = self._path(path)
Expand Down

0 comments on commit 96dfc9e

Please sign in to comment.