Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Mar 11, 2022
1 parent c5200ed commit d2f758b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ploomber/tasks/notebook.py
Expand Up @@ -595,7 +595,7 @@ def run(self):
tmp.unlink()

# on windows, Path.rename will throw an error if the file exists
if path_to_out.is_file():
if path_to_out_ipynb != path_to_out and path_to_out.is_file():
path_to_out.unlink()

path_to_out_ipynb.rename(path_to_out)
Expand Down

0 comments on commit d2f758b

Please sign in to comment.