Check if page is null before trying to access page.data (eval_python.py)

This commit is contained in:
jesopo 2019-01-15 12:39:27 +00:00
parent 3eb87b06e1
commit 8e5642f5d7

View file

@ -47,7 +47,7 @@ class Module(ModuleManager.BaseModule):
except: except:
pass pass
if page.data: if page and page.data:
out = page.data.split("</b></span><br>", 1)[1] out = page.data.split("</b></span><br>", 1)[1]
out = html.unescape(out) out = html.unescape(out)
out = json.loads(out) out = json.loads(out)