Skip to content

Commit

Permalink
fix: fix referenced before assignment (#145)
Browse files Browse the repository at this point in the history
fix #144
  • Loading branch information
timerring authored Dec 21, 2024
1 parent a2256d8 commit 512024a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/burn/only_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def normalize_video_path(filepath):
return filepath.rsplit('/', 1)[0] + '/' + parts[0] + '_' + new_date_time + '-.mp4'

def render_video_only(video_path):
if not os.path.exists(video_path):
print(f"File {video_path} does not exist.")
return

original_video_path = str(video_path)
format_video_path = normalize_video_path(original_video_path)
xml_path = original_video_path[:-4] + '.xml'
Expand Down

0 comments on commit 512024a

Please sign in to comment.