fix wolfram edge case
This commit is contained in:
parent
98655e61c5
commit
a6b5aebedf
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user