Skip to content

Commit

Permalink
refactor: connect error (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feudalman authored Jun 23, 2024
1 parent 65b90e5 commit 95f6459
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion swanboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swanboard",
"version": "0.1.2b7",
"version": "0.1.2b8",
"description": "Dashboard for Swanlab",
"python": "true"
}
5 changes: 4 additions & 1 deletion swanboard/run/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def run(path: str, host: str, port: int) -> None:
start = time.time()
# debug一下当前日志文件夹的位置
swl.debug("Try to explore the swanlab experiment logs in: " + FONT.bold(path))
connect(path=path)
try:
connect(path=path)
except FileNotFoundError:
swl.error("Can not find the swanlab db in: " + FONT.bold(path))
# ---------------------------------- 日志打印 ----------------------------------
# 可用URL
ipv4 = URL.get_all_ip()
Expand Down

0 comments on commit 95f6459

Please sign in to comment.