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

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

In the new framework handler, either write the exception message or use
Apache's. Previously any message present would simply be prepended to Apache's,
resulting in something very ugly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
                errview = errviewcls(req, e)
183
183
                errview.render(req)
184
184
                return req.OK
185
 
            else:
 
185
            elif e.message:
186
186
                req.write(e.message)
 
187
                return req.OK
 
188
            else:
187
189
                return e.code
188
190
        except Exception, e:
189
191
            # A non-HTTPError appeared. We have an unknown exception. Panic.