Skip to content

Commit

Permalink
fix: fix missing paths (#141)
Browse files Browse the repository at this point in the history
fix #140
  • Loading branch information
timerring authored Dec 15, 2024
1 parent 238bba4 commit 6228175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/burn/only_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def render_video_only(video_path):

# # Delete relative files
for remove_path in [original_video_path, xml_path, ass_path, srt_path, jsonl_path]:
os.remove(remove_path)
if os.path.exists(remove_path):
os.remove(remove_path)

# # For test
# test_path = original_video_path[:-4]
Expand Down

0 comments on commit 6228175

Please sign in to comment.