完成 Ruff 全量清理

This commit is contained in:
yml2213
2026-08-31 10:55:44 +08:00
parent 840af3108e
commit 09ab80e062
68 changed files with 323 additions and 291 deletions
+4 -4
View File
@@ -202,7 +202,7 @@ class GoodsMixin:
result.update(
self._refresh_account_points(client, account, cookie, ctn=ctn)
)
except Exception as exc:
except Exception as exc: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
self._push_log("warning", f"支付锁单后刷新积分失败: {exc}")
self._mark_task(
db,
@@ -493,7 +493,7 @@ class GoodsMixin:
points_refresh = self._refresh_account_points(
client, account, cookie, ctn=ctn
)
except Exception as exc:
except Exception as exc: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
self._push_log("warning", f"兑换后刷新积分失败: {exc}")
self._mark_task(
db,
@@ -549,7 +549,7 @@ class GoodsMixin:
)
baseline_points = baseline["esports_points"]
db.commit()
except Exception as exc:
except Exception as exc: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
self._push_log("warning", f"兑换电竞皮肤前刷新积分失败: {exc}")
result = client.exchange_esports_goods(
@@ -571,7 +571,7 @@ class GoodsMixin:
)
result.update(points_result)
result["esports_points_after_exchange"] = points_result["esports_points"]
except Exception as exc:
except Exception as exc: # noqa: BLE001 外部接口与任务边界需要保留宽泛异常兜底
result["esports_points_refresh_error"] = str(exc)
account.esports_bind_status = "esports_goods_exchanged"