Mercurial > libervia-backend
changeset 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 | 33d75cd3c371 |
children | b15644cae50d |
files | sat_frontends/jp/cmd_blog.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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("")