Give page an initial value of None, in case the get_url call fails in

modules/eval_python.py
This commit is contained in:
jesopo 2018-10-24 13:54:22 +01:00
parent f89b96f373
commit a1e77c40e8

View file

@ -33,6 +33,7 @@ class Module(ModuleManager.BaseModule):
_name = "Python" _name = "Python"
def _eval(self, lang, event): def _eval(self, lang, event):
page = None
try: try:
page = utils.http.get_url(EVAL_URL, page = utils.http.get_url(EVAL_URL,
post_data={ post_data={