diff --git a/swanboard/package.json b/swanboard/package.json index e9be3cd..0ad6e40 100644 --- a/swanboard/package.json +++ b/swanboard/package.json @@ -1,6 +1,6 @@ { "name": "swanboard", - "version": "0.1.2b7", + "version": "0.1.2b8", "description": "Dashboard for Swanlab", "python": "true" } diff --git a/swanboard/run/run.py b/swanboard/run/run.py index 314104a..d15ecc0 100644 --- a/swanboard/run/run.py +++ b/swanboard/run/run.py @@ -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()