aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-24 13:54:22 +0100
committerGravatar jesopo2018-10-24 13:54:22 +0100
commita1e77c40e8dc13012a52ad276414ebdc83fcb533 (patch)
treeddaceb4d8212e2cb6a5282c9b27d9d2f6ebe52cf
parentMove taking a reference to sys.stdout above fail() in modules/eval_python.py (diff)
signature
Give `page` an initial value of None, in case the get_url call fails in
modules/eval_python.py
-rw-r--r--modules/eval_python.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/eval_python.py b/modules/eval_python.py
index 90d7f620..e8a2fe7e 100644
--- a/modules/eval_python.py
+++ b/modules/eval_python.py
@@ -33,6 +33,7 @@ class Module(ModuleManager.BaseModule):
_name = "Python"
def _eval(self, lang, event):
+ page = None
try:
page = utils.http.get_url(EVAL_URL,
post_data={