In SubmitHandler
I get
the submitted url
:
url = self.request.get("url").rstrip().lstrip()
and check if its length is zero and if it is zero i redirect to /urlparseerror
:
if len(url) == 0:
logging.info("""***len(url) is --zero--: %s***""" % len(url))
self.redirect("/urlparseerror")
but for some reason the redirect is not executed. According to logging.info
len(url)
is zero:
***len(url) is --zero--: 0***
What am I doing wrong?