From a6b5aebedf6c2ef24bd88d714c2576758cb7303a Mon Sep 17 00:00:00 2001 From: iou1name Date: Mon, 21 Mar 2022 07:12:23 -0400 Subject: [PATCH] fix wolfram edge case --- modules/wolfram.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/wolfram.py b/modules/wolfram.py index 6987077..b1b9f33 100755 --- a/modules/wolfram.py +++ b/modules/wolfram.py @@ -66,6 +66,8 @@ def wa_query(query, app_id, units='nonmetric'): query, output = texts[0], texts[1] except IndexError: return "No text-representable result found." + if output == None: + output = "No plain text results found." output = output.replace('\n', ' | ') if not output: