Skip to content

Commit 512024a

Browse files
authored
fix: fix referenced before assignment (#145)
fix #144
1 parent a2256d8 commit 512024a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/burn/only_render.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ def normalize_video_path(filepath):
2222
return filepath.rsplit('/', 1)[0] + '/' + parts[0] + '_' + new_date_time + '-.mp4'
2323

2424
def render_video_only(video_path):
25+
if not os.path.exists(video_path):
26+
print(f"File {video_path} does not exist.")
27+
return
28+
2529
original_video_path = str(video_path)
2630
format_video_path = normalize_video_path(original_video_path)
2731
xml_path = original_video_path[:-4] + '.xml'

0 commit comments

Comments
 (0)