|
@@ -1,6 +1,8 @@
|
|
|
import os
|
|
|
import time
|
|
|
+import traceback
|
|
|
import uuid
|
|
|
+from dbm.dumb import error
|
|
|
from typing import Optional
|
|
|
|
|
|
import google.generativeai as genai
|
|
@@ -126,9 +128,10 @@ class GoogleAI(object):
|
|
|
os.remove(video_path)
|
|
|
return text
|
|
|
except Exception as e:
|
|
|
- logger.error(f"[内容分析] 处理异常,异常信息{e} {api_key}")
|
|
|
+ error_info = traceback.format_exc()
|
|
|
+ logger.error(f"[内容分析] 处理异常,异常信息{e} {error_info} {api_key}")
|
|
|
os.remove(video_path)
|
|
|
- return f"[异常] {e} {api_key}"
|
|
|
+ return f"[异常] {e} {error_info} {api_key}"
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|