Open iurisilvio opened 13 years ago
Just to link things, it is reported in googlegroups: https://groups.google.com/d/topic/bottlepy/RQV3B7ACiNk/discussion
Yep! Me 2!
Bottle 0.11dev if use:
app.redirect('/index')
get this error:
AttributeError("'Bottle' object has no attribute 'redirect'",)
else usage:
redirect('/index')
(in the same application) get:
File "/usr/local/bin/bottle.py", line 1812, in redirect
raise HTTPResponse("", status=code, header=dict(Location=location))
HTTPResponse: HTTP Response 303
not fixed the BUG?! i had to jump as:
response.set_header('location', "/tag/%s/info"% tid)
response.status = 303
Bump.
It happens because redirect exception is not handled by Bottle, because it already get an exception (404).
I get this exception: