瀏覽代碼

fix: log exception when sglang is not installed

myhloli 4 月之前
父節點
當前提交
dda3c41898
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mineru/backend/vlm/predictor.py

+ 1 - 0
mineru/backend/vlm/predictor.py

@@ -32,6 +32,7 @@ try:
 
     engine_loaded = True
 except Exception as e:
+    logger.exception(e)
     logger.warning("sglang is not installed. If you are not using sglang, you can ignore this warning.")