From 6b7e88999b2201e2d2c082dc6712fe9d95ef9401 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Thu, 14 Dec 2023 15:59:05 +0100 Subject: [PATCH] =?UTF-8?q?another=20crash=20fix=20crashing=20on=20crashes?= =?UTF-8?q?=20=F0=9F=99=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kss b/kss index 617eebd..fb44b45 100755 --- a/kss +++ b/kss @@ -73,7 +73,8 @@ def overcnt(jeez, kctl, pod, args): reason = container["state"]["waiting"]["reason"] if reason in failed_containers: state = colourText(reason, "red") - errmsg = container["lastState"]["terminated"]["message"] + if "message" in container["lastState"]["terminated"]: + errmsg = container["lastState"]["terminated"]["message"] else: state = colourText(state + " " + reason, "yellow")