From f4e9ec4b1746f2a7df7e85d8304b99f05e9d61ad Mon Sep 17 00:00:00 2001 From: Ignacio Heredia Date: Fri, 26 Apr 2024 15:38:50 +0200 Subject: [PATCH] fix: make description optional --- deepaas/cmd/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deepaas/cmd/cli.py b/deepaas/cmd/cli.py index 7daaa8d9..8d967657 100644 --- a/deepaas/cmd/cli.py +++ b/deepaas/cmd/cli.py @@ -110,7 +110,7 @@ def _fields_to_dict(fields_in): param["default"] = val.missing # infer 'help' - val_help = val.metadata["description"] + val_help = val.metadata.get("description", "") # argparse hates % sign: if "%" in val_help: # replace single occurancies of '%' with '%%' @@ -118,7 +118,7 @@ def _fields_to_dict(fields_in): val_help = re.sub(r"(?