From 8e5642f5d721fcfe4d2654f03ca6eb2e20c4edec Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 15 Jan 2019 12:39:27 +0000 Subject: [PATCH] Check if `page` is null before trying to access `page.data` (eval_python.py) --- modules/eval_python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/eval_python.py b/modules/eval_python.py index 5650f28c..b4c45e32 100644 --- a/modules/eval_python.py +++ b/modules/eval_python.py @@ -47,7 +47,7 @@ class Module(ModuleManager.BaseModule): except: pass - if page.data: + if page and page.data: out = page.data.split("
", 1)[1] out = html.unescape(out) out = json.loads(out)