Skip to content

Commit d76de36

Browse files
committed
skip no video
1 parent 22da7d5 commit d76de36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/diarize.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
@task
88
def diarize_meeting(meeting: Meeting):
99
video_file = download_video(f"{meeting.meeting}_{meeting.date}", str(meeting.video))
10-
run_diarization(video_file)
10+
if video_file:
11+
run_diarization(video_file)
12+
else:
13+
print("Video file not found")
1114
# TODO: Update meeting with transcript location

0 commit comments

Comments
 (0)