fix wolfram edge case

This commit is contained in:
iou1name 2022-03-21 07:12:23 -04:00
parent 98655e61c5
commit a6b5aebedf

View File

@ -66,6 +66,8 @@ def wa_query(query, app_id, units='nonmetric'):
query, output = texts[0], texts[1] query, output = texts[0], texts[1]
except IndexError: except IndexError:
return "No text-representable result found." return "No text-representable result found."
if output == None:
output = "No plain text results found."
output = output.replace('\n', ' | ') output = output.replace('\n', ' | ')
if not output: if not output: