Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 469fb7f

Browse files
committed
fix: add message for auto update
1 parent 855de78 commit 469fb7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/bf1chs/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,10 @@ def __init__(self) -> None:
514514
# Check for updates
515515
self.github_api = GithubAPI(REPO_OWNER, REPO_NAME)
516516
if self.config["meta.autoUpdate"]:
517-
self._check_update()
517+
try:
518+
self._check_update()
519+
except Exception:
520+
console.print("[bold red]自动更新失败。\n")
518521

519522
def _download(self):
520523
"""

0 commit comments

Comments
 (0)