~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

  • Committer: William Grant
  • Date: 2009-03-05 07:43:46 UTC
  • Revision ID: grantw@unimelb.edu.au-20090305074346-zn2hjuz5wyk922a4
Don't handle mod_python exceptions (eg. redirects) as unknown exceptions.
It was a regression in new dispatch. Fixes Google Code issue 118.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
                return req.OK
129
129
            else:
130
130
                return e.code
 
131
        except mod_python.apache.SERVER_RETURN:
 
132
            # A mod_python-specific Apache error.
 
133
            # XXX: We need to raise these because req.throw_error() uses them.
 
134
            # Remove this after Google Code issue 117 is fixed.
 
135
            raise
131
136
        except Exception, e:
132
137
            # A non-HTTPError appeared. We have an unknown exception. Panic.
133
138
            handle_unknown_exception(req, *sys.exc_info())