Skip to content

Commit 6228175

Browse files
authored
fix: fix missing paths (#141)
fix #140
1 parent 238bba4 commit 6228175

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/burn/only_render.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def render_video_only(video_path):
5050

5151
# # Delete relative files
5252
for remove_path in [original_video_path, xml_path, ass_path, srt_path, jsonl_path]:
53-
os.remove(remove_path)
53+
if os.path.exists(remove_path):
54+
os.remove(remove_path)
5455

5556
# # For test
5657
# test_path = original_video_path[:-4]

0 commit comments

Comments
 (0)