Minor fix

This commit is contained in:
Miroslav Stampar 2013-03-19 19:06:51 +01:00
parent d1ae62b22b
commit a3d9a7b1ff

View File

@ -1064,13 +1064,15 @@ def identifyWaf():
@cachedmethod
def _(*args, **kwargs):
page, headers, code = None, None, None
try:
if kwargs.get("get"):
kwargs["get"] = urlencode(kwargs["get"])
kwargs["raise404"] = False
return Request.getPage(*args, **kwargs)
except Exception, ex:
return None, None, None
page, headers, code = Request.getPage(*args, **kwargs)
except Exception:
pass
return page or "", headers or {}, code
retVal = False