From 27c8405ea43a68c2601115dadbacd7a62817a913 Mon Sep 17 00:00:00 2001 From: Alexandra Belousov Date: Thu, 16 Jan 2025 13:11:58 +0200 Subject: [PATCH] add info msg to cli output if logs are not available --- runhouse/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runhouse/main.py b/runhouse/main.py index 3741ec809..75ea40ff2 100644 --- a/runhouse/main.py +++ b/runhouse/main.py @@ -501,6 +501,9 @@ def cluster_logs( headers=rns_client.request_headers(), ) + if resp.status_code == 404: + console.print("Cluster logs are not available yet.") + return if resp.status_code != 200: console.print("Failed to load cluster logs.") return