aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-15 12:39:27 +0000
committerGravatar jesopo2019-01-15 12:39:27 +0000
commit8e5642f5d721fcfe4d2654f03ca6eb2e20c4edec (patch)
treed2f152dded6ec7b0030763a47da4e2dd79e42c2a
parent'guid' -> 'uuid' as apparently guid is microsoft's name for a uuid (diff)
signature
Check if `page` is null before trying to access `page.data` (eval_python.py)
-rw-r--r--modules/eval_python.py2
1 files changed, 1 insertions, 1 deletions
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("</b></span><br>", 1)[1]
out = html.unescape(out)
out = json.loads(out)