def _handle_not_found(error):
    """Handles the not found exception raised by framework"""
    if not isinstance(error, WebConsoleApiException):
        return make_response(NotFoundException())
    return error
Handles the not found exception raised by framework
web_console_v2/api/fedlearner_webconsole/app.py