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
- errorstr
Identifying error key
- messagestr
Human-readable error message
- stacktracestr, optional
If pyramid.debug = true, also return the stacktrace to the client