Skip to content

Commit

Permalink
🐛 catch WorkflowNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Oct 1, 2024
1 parent 5118979 commit 672a6b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snk/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def handle_force_installation(name: str):
else:
handle_force_installation(name)
workflow_path = self.download(workflow, name, tag_name=tag, commit=commit)
except WorkflowNotFoundError as e:
to_remove = self.get_paths_to_delete(name)
self.delete_paths(to_remove)
raise e
except InvalidWorkflowRepositoryError:
workflow_local_path = Path(workflow).resolve()
if workflow_local_path.is_file():
Expand Down

0 comments on commit 672a6b4

Please sign in to comment.