From 62d0d138d28b0c31a2db806b680e85a2489c9c1d Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 2 Jun 2024 11:47:32 -0700 Subject: [PATCH] refac: shouldn't remove files --- main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.py b/main.py index acccffe..6e5c23b 100644 --- a/main.py +++ b/main.py @@ -116,11 +116,9 @@ async def load_module_from_path(module_name, module_path): return module.Pipeline() else: raise Exception("No Pipeline class found") - except Exception as e: print(f"Error loading module: {module_name}") print(e) - os.remove(module_path) return None