swissvotes.views.exceptions

Functions

handle_forbidden(→ onegov.core.types.RenderData)

Displays a nice HTTP 403 error.

handle_notfound(→ onegov.core.types.RenderData)

Displays a nice HTTP 404 error.

Module Contents

swissvotes.views.exceptions.handle_forbidden(self: webob.exc.HTTPForbidden, request: onegov.swissvotes.request.SwissvotesRequest) onegov.core.types.RenderData[source]

Displays a nice HTTP 403 error.

swissvotes.views.exceptions.handle_notfound(self: webob.exc.HTTPNotFound, request: onegov.swissvotes.request.SwissvotesRequest) onegov.core.types.RenderData[source]

Displays a nice HTTP 404 error.