@aiyiran/myclaw 1.0.261 → 1.0.262
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -47,6 +47,8 @@ class JimengVideoAdapter:
|
|
|
47
47
|
try:
|
|
48
48
|
err_json = json.loads(e.args[0].decode('utf-8'))
|
|
49
49
|
raise RuntimeError(f"即梦 API 错误: {err_json}")
|
|
50
|
+
except RuntimeError:
|
|
51
|
+
raise
|
|
50
52
|
except Exception:
|
|
51
53
|
pass
|
|
52
54
|
raise RuntimeError(f"即梦提交失败: {str(e)}")
|
|
@@ -78,6 +80,8 @@ class JimengVideoAdapter:
|
|
|
78
80
|
if err_json.get("code") in (50500, 50501):
|
|
79
81
|
continue # Server error, can retry
|
|
80
82
|
raise RuntimeError(f"即梦查询失败: {err_json}")
|
|
83
|
+
except RuntimeError:
|
|
84
|
+
raise
|
|
81
85
|
except Exception:
|
|
82
86
|
pass
|
|
83
87
|
raise RuntimeError(f"即梦查询异常: {str(e)}")
|