From e787033d60e54c36480d7394335305b7cddca5bd Mon Sep 17 00:00:00 2001 From: YuanHui <31339626+alsesa@users.noreply.github.com> Date: Wed, 19 Feb 2025 14:33:20 +0800 Subject: [PATCH] add try process --- course.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/course.py b/course.py index cf4ec90..e3a4d10 100755 --- a/course.py +++ b/course.py @@ -264,7 +264,10 @@ def get_course(): # 调用 mp4_to_wav 函数进行转换 wav_file = convert_mp4(mp4_file) if wav_file is not None: - process_audio_file(wav_file) + try: + process_audio_file(wav_file) + except: + print('process_audio_file fail') if __name__ == '__main__':