完成 Ruff 全量清理
This commit is contained in:
@@ -118,7 +118,7 @@ class HuyaBatchRunner(
|
||||
self._push_log("success", f"[{current}] {name} {task.message}")
|
||||
else:
|
||||
self._push_log("error", f"[{current}] {name} {task.message}")
|
||||
except Exception as exc:
|
||||
except Exception as exc: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
|
||||
self._mark_task(worker_db, task, "error", f"执行异常: {exc}")
|
||||
self._push_log("error", f"[{current}] {name} 执行异常: {exc}")
|
||||
finally:
|
||||
@@ -196,12 +196,12 @@ class HuyaBatchRunner(
|
||||
for future in as_completed(futures):
|
||||
try:
|
||||
future.result()
|
||||
except Exception as exc:
|
||||
except Exception as exc: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
|
||||
self._push_log("error", f"虎牙 Worker 异常: {exc}")
|
||||
|
||||
self._push_log("info", f"虎牙批次 {self.batch_id} 完成")
|
||||
self._push_log("result", "")
|
||||
except Exception as exc:
|
||||
except Exception as exc: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
|
||||
self._push_log("error", f"虎牙批次执行异常: {exc}")
|
||||
self._push_log("result", "")
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user