diff options
| author | 2019-01-15 12:39:27 +0000 | |
|---|---|---|
| committer | 2019-01-15 12:39:27 +0000 | |
| commit | 8e5642f5d721fcfe4d2654f03ca6eb2e20c4edec (patch) | |
| tree | d2f152dded6ec7b0030763a47da4e2dd79e42c2a /modules | |
| 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)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/eval_python.py | 2 |
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) |
