diff --git a/py/manager.py b/py/manager.py index 4b8b118..49cbc4e 100644 --- a/py/manager.py +++ b/py/manager.py @@ -157,6 +157,8 @@ class ModelManager: def get_all_files_entry(directory: str): entries: list[os.DirEntry[str]] = [] + if not os.path.exists(directory): + return [] with os.scandir(directory) as it: for entry in it: if not include_hidden_files and entry.name.startswith("."):