fix: 修复远程浏览器登录态保留 & 剪贴板同步问题
This commit is contained in:
@@ -72,8 +72,9 @@ def _check_upstream(upstream_id: int) -> None:
|
||||
balance = raw_balance / divisor
|
||||
except Exception as exc:
|
||||
logger.warning("upstream %s balance fetch failed: %s", upstream.name, exc)
|
||||
upstream.balance = balance
|
||||
upstream.balance_updated_at = datetime.now(timezone.utc) if balance is not None else None
|
||||
if balance is not None:
|
||||
upstream.balance = balance
|
||||
upstream.balance_updated_at = datetime.now(timezone.utc)
|
||||
except Exception as exc:
|
||||
# failure path
|
||||
upstream.consecutive_failures = (upstream.consecutive_failures or 0) + 1
|
||||
|
||||
Reference in New Issue
Block a user