aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/cli/commands/cmd_qpi.py
diff options
context:
space:
mode:
Diffstat (limited to 'qtip/cli/commands/cmd_qpi.py')
-rw-r--r--qtip/cli/commands/cmd_qpi.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/qtip/cli/commands/cmd_qpi.py b/qtip/cli/commands/cmd_qpi.py
index 4865b7ae..a2802032 100644
--- a/qtip/cli/commands/cmd_qpi.py
+++ b/qtip/cli/commands/cmd_qpi.py
@@ -44,6 +44,10 @@ def show(name):
with open('{}/{}.yaml'.format(QPI_PATH, name)) as conf:
qpi = yaml.safe_load(conf)
for section in qpi['sections']:
- table.add_row([section['name'], section['description'],
- section['formula']])
+ try:
+ table.add_row([section['name'], section['description'],
+ section['formula']])
+ except Exception:
+ table.add_row([section['name'], section['description'],
+ 'Not Available'])
click.echo(table)