Address code review feedback on empty catch blocks

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-15 07:48:50 +00:00
parent ff1723cc85
commit 21efcbb63b
1 changed files with 2 additions and 2 deletions

View File

@ -186,8 +186,8 @@ async function discoverModels(backend) {
const json = JSON.parse(res.body);
return json.data || [];
}
} catch {
// 模型探测失败,使用预定义列表
} catch (err) {
console.log(`[WAKE] ⚠️ ${backend.name} 模型探测失败: ${err.message}`);
}
return backend.models.map(id => ({ id }));