def handle_openeoapi_exception(error: OpenEOApiException): return flask.jsonify(error.to_dict()), error.status_code
def handle_openeoapi_exception(error: OpenEOApiException): error_dict = error.to_dict() _log.error(str(error_dict), exc_info=True) return jsonify(error_dict), error.status_code