fix(release): keep TypeScript compiler external · openclaw/openclaw@f06e9f6
steipete
·
2026-05-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -444,10 +444,14 @@ jobs:
|
444 | 444 | async function fetchWithRetry(url, options = {}) { |
445 | 445 | let lastStatus = "unknown"; |
446 | 446 | for (let attempt = 1; attempt <= 12; attempt += 1) { |
447 | | - const response = await fetch(url, { redirect: "manual", ...options }); |
448 | | - lastStatus = response.status; |
449 | | - if (response.status !== 429 && response.status < 500) { |
450 | | - return response; |
| 447 | + try { |
| 448 | + const response = await fetch(url, { redirect: "manual", ...options }); |
| 449 | + lastStatus = response.status; |
| 450 | + if (response.status !== 429 && response.status < 500) { |
| 451 | + return response; |
| 452 | + } |
| 453 | + } catch (error) { |
| 454 | + lastStatus = error instanceof Error ? error.message : String(error); |
451 | 455 | } |
452 | 456 | await new Promise((resolve) => setTimeout(resolve, attempt * 5000)); |
453 | 457 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。