From: Shane Jaroch Date: Sun, 25 Feb 2024 16:22:28 +0000 (-0500) Subject: suppress exception for now, for testing purposes X-Git-Tag: v0.2.8.dev0~28 X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=0056084ac4b75cf543338bb7f985ce6e6127f949;p=nutratech%2Fcli.git suppress exception for now, for testing purposes --- 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)