Skip to content

Commit d8e9f93

Browse files
committed
Try adding more information when logging metrics fails
1 parent 83745d8 commit d8e9f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simvue_cli/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def _check_run_exists(run_id: str) -> pathlib.Path:
3535
are removed. The same applies if the run is no longer active.
3636
"""
3737
run_shelf_file = CACHE_DIRECTORY.joinpath(f"{run_id}.json")
38-
if not (run := Client().get_run(run_id)):
38+
if not (run := Client().get_run(run_id)) or not isinstance(run, dict):
3939
if run_shelf_file.exists():
4040
run_shelf_file.unlink()
4141
raise ValueError(f"Run '{run_id}' does not exist.")

0 commit comments

Comments
 (0)