Skip to content

Commit

Permalink
refac: shouldn't remove files
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Jun 2, 2024
1 parent dd98a71 commit 62d0d13
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 62d0d13

Please sign in to comment.