zhangyong 11 ヶ月 前
コミット
2333a9c409
1 ファイル変更4 行追加4 行削除
  1. 4 4
      video_rewriting/video_processor.py

+ 4 - 4
video_rewriting/video_processor.py

@@ -455,11 +455,11 @@ class VideoProcessor:
         feishu_sheet = data["feishu_sheet"]
         cookie_sheet = data["cookie_sheet"]
         task_data = Material.get_task_data(feishu_id, feishu_sheet)
-        data = get_data(mark, task_data)
-        if not data:
-            return
-        task = json.loads(data)
         try:
+            data = get_data(mark, task_data)
+            if not data:
+                return
+            task = json.loads(data)
             VideoProcessor.process_task(task, name, feishu_id, cookie_sheet)
             return mark
         except Exception as e: