Check if page
is null before trying to access page.data
(eval_python.py)
This commit is contained in:
parent
3eb87b06e1
commit
8e5642f5d7
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class Module(ModuleManager.BaseModule):
|
|||
except:
|
||||
pass
|
||||
|
||||
if page.data:
|
||||
if page and page.data:
|
||||
out = page.data.split("</b></span><br>", 1)[1]
|
||||
out = html.unescape(out)
|
||||
out = json.loads(out)
|
||||
|
|
Loading…
Reference in a new issue