Skip to content
This repository

new-style and classic-style exceptions with python 2.4 #81

anandology opened this Issue · 1 comment

1 participant

Anand Chitipothu
Anand Chitipothu

This issue was reported in the mailing list.

I've come across a small bug with on python 2.4 (which is what I'm stuck with for the forseeable future).

The following works fine:

class Handler1(object):
    def GET():
        raise web.Redirect('/someotherurl')

but this:

class Handler2(object):
    def GET():
        raise web.Forbidden()

fails with the message:

TypeError: exceptions must be classes, instances, or strings (deprecated), not Forbidden

Anand Chitipothu

Fixed by #82.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.