flask.Flask.preserve_context_on_exception

Flask.preserve_context_on_exception

Returns the value of the PRESERVE_CONTEXT_ON_EXCEPTION configuration value in case it’s set, otherwise a sensible default is returned.

New in version 0.7.