From 9c298928f3513dc067838ca4f3166744459b5175 Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Fri, 12 Dec 2025 10:48:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 8d6e16f..2779ec4 100755 --- a/app.py +++ b/app.py @@ -2118,8 +2118,9 @@ def run_task(user_id, account_id, browse_type, enable_screenshot=True, source="m account.remark = real_name database.update_account_remark(account_id, real_name) socketio.emit('account_update', account.to_dict(), room=f'user_{user_id}') - except Exception: - pass # 静默失败,不影响任务执行 + logger.info(f"[自动备注] 账号 {account.username} 自动设置备注为: {real_name}") + except Exception as e: + logger.warning(f"[自动备注] 获取姓名失败: {e}") if account_id in task_status: task_status[account_id]["detail_status"] = "正在浏览"