refac: shouldn't remove files

This commit is contained in:
Timothy J. Baek 2024-06-02 11:47:32 -07:00
parent dd98a71d0b
commit 62d0d138d2

View File

@ -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