ming 3 anni fa
parent
commit
9f350b7db8
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      api/main.py

+ 2 - 1
api/main.py

@@ -1182,7 +1182,8 @@ def gen_video_queue_eng(name_hash,name,text_content, image_urls,sub_titles,avata
             shutil.copy(tmp_video_dir+top1['name']+'.mp4',video_dest+top1['name_hash']+'.mp4')
             shutil.copy(tmp_video_dir+top1['name']+'.mp4',video_dest+top1['name_hash']+'.mp4')
             os.remove(tmp_video_dir+top1['name_hash']+'.mp4')
             os.remove(tmp_video_dir+top1['name_hash']+'.mp4')
             notify_group(top1['name']+"(ENG)的影片已經產生完成囉! www.choozmo.com:8168/"+video_sub_folder+['name_hash']+".mp4")
             notify_group(top1['name']+"(ENG)的影片已經產生完成囉! www.choozmo.com:8168/"+video_sub_folder+['name_hash']+".mp4")
-        except:
+        except Exception as e:
+            logging.error(traceback.format_exc())
             print('video generation error')
             print('video generation error')
             notify_group('影片錯誤')
             notify_group('影片錯誤')
         db['video_queue'].delete(id=top1['id'])
         db['video_queue'].delete(id=top1['id'])