]> Nutra Git (v1) - nutratech/cli.git/commitdiff
suppress exception for now, for testing purposes
authorShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 16:22:28 +0000 (11:22 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 16:24:51 +0000 (11:24 -0500)
ntclient/services/analyze.py

index 9f5529ff5fd91420ec2be7969f0392de282d73f3..5a92c082f0afc468b08d0413d3187a82e3bce057 100644 (file)
@@ -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)