Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A snippet from the data team's API framework used to handle exceptions
def http_error_handler(exc):
error handler intended for werkzeug HTTPException instances
uid = log_and_generate_uid(exc)
code = kinja_error_code_from_exc(exc)
return error(exc, exc_code=code, uid=uid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.