diff options
-rw-r--r-- | modules/wolframalpha.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/wolframalpha.py b/modules/wolframalpha.py index 910698f..f13cdcb 100644 --- a/modules/wolframalpha.py +++ b/modules/wolframalpha.py @@ -39,7 +39,7 @@ class Module(object): for pod in xml.findall('pod'): #if pod.attrib['id'] == 'Result': result = pod.find('subpod/plaintext') - if result is not None: + if result is not None and result.text is not None: text = result.text text = whitespace_re.sub(' ', text) results.append('\002%s\002: %s' % (pod.attrib['title'], text)) |