diff --git a/.github/workflows/sync.py b/.github/workflows/sync.py index cb49586..2bac303 100644 --- a/.github/workflows/sync.py +++ b/.github/workflows/sync.py @@ -64,7 +64,7 @@ def delete_gitee_releases(latest_id, client, uri, token): print(f'Successfully deleted release #{id}.') else: raise ValueError( - f"Request failed with status code {release_api_response.status_code}") + f"Request failed with status code {delete_response.status_code}") def sync_to_gitee(tag: str, body: str, files: slice): diff --git a/cmd/agent/main.go b/cmd/agent/main.go index 960dc4d..3993526 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -441,9 +441,6 @@ func reportState() { // doSelfUpdate 执行更新检查 如果更新成功则会结束进程 func doSelfUpdate(useLocalVersion bool) { - if monitor.CachedCountryCode == "" { - return - } v := semver.MustParse("0.1.0") if useLocalVersion { v = semver.MustParse(version)