Commit 87f7ae98 by baiquan

refactor(upload): 优化视频上传异常处理逻辑

- 移除了注释的异常捕获代码块
- 在准备视频文件时增加异常捕获,返回 None 以避免抛出异常
- 删除了多余的注释和未使用的代码
parent 65603605
......@@ -633,13 +633,14 @@ def is_video_corrupted(file_path):
def upload_video_with_multithreading(task):
"""多线程视频上传主函数"""
# 准备视频文件(同原逻辑)
# try:
try:
file_path = prepare_video_file(task)
# except VideoError:
# # 视频时长超过60秒, 使用生成视频
# video_info = generate_video(task)
# return video_info
# except Exception as e:
except Exception as e:
return None
# raise e
# 初始化上传
upload = Upload(task)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment