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

« back to all changes in this revision

Viewing changes to ivle/dispatch/__init__.py

Make sure that we don't use the old framework if the new framework crashes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
            # A view explicitly raised an HTTP error. Respect it.
162
162
            req.status = e.code
163
163
            req.write(e.message)
164
 
            return e.code
 
164
            return e.code # Should be req.OK once we have our own errviews.
165
165
        except Exception, e:
166
166
            # A non-HTTPError appeared. We have an unknown exception. Panic.
167
167
            handle_unknown_exception(req, *sys.exc_info())
 
168
            return req.OK
168
169
        else:
169
170
            req.store.commit()
170
171
            return req.OK