diff sat_frontends/jp/cmd_blog.py @ 3727:a6dfd3db372b

cli (blog/get): fix default output when a value is None
author Goffi <goffi@goffi.org>
date Tue, 25 Jan 2022 17:27:39 +0100
parents 9ca19b317293
children b337d7da72e5
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_blog.py	Tue Jan 25 17:26:05 2022 +0100
+++ b/sat_frontends/jp/cmd_blog.py	Tue Jan 25 17:27:39 2022 +0100
@@ -366,7 +366,7 @@
                 value = k_cb[k](item, keys) if k in k_cb else item[k]
                 if isinstance(value, bool):
                     value = str(value).lower()
-                self.disp(header + value)
+                self.disp(header + (value or ""))
                 # we want a separation line after each item but the last one
             if idx < len(items) - 1:
                 print("")