From 0056084ac4b75cf543338bb7f985ce6e6127f949 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sun, 25 Feb 2024 11:22:28 -0500 Subject: [PATCH] suppress exception for now, for testing purposes --- ntclient/services/analyze.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ntclient/services/analyze.py b/ntclient/services/analyze.py index 9f5529f..5a92c08 100644 --- a/ntclient/services/analyze.py +++ b/ntclient/services/analyze.py @@ -128,7 +128,11 @@ def foods_analyze(food_ids: set, grams: float = 0) -> tuple: ############ # Print view # TODO: nested, color-coded tree view - nutprogbar(food_amts, food_analyses, nutrients) + try: + nutprogbar(food_amts, food_analyses, nutrients) + except NameError as exception: + print(repr(exception)) + # exit(0) table = tabulate(nutrient_rows, headers=headers, tablefmt="presto") print(table) nutrients_rows.append(nutrient_rows) -- 2.52.0