Skip to content

Commit

Permalink
fixes win test
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Mar 11, 2022
1 parent 3652a5f commit c5200ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ploomber/tasks/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@ def run(self):
finally:
tmp.unlink()

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

path_to_out_ipynb.rename(path_to_out)
self._converter.convert()

Expand Down

0 comments on commit c5200ed

Please sign in to comment.