完成 Ruff 全量清理
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user