pypicloud.views package¶
Submodules¶
Module contents¶
Views
-
pypicloud.views.
format_exception
(context, request)[source]¶ Catch all app exceptions and render them nicely
This will keep the status code, but will always return parseable json
Returns: - error : str
Identifying error key
- message : str
Human-readable error message
- stacktrace : str, optional
If pyramid.debug = true, also return the stacktrace to the client