

def _loginFailed(self, result):
    '\n        Handle login failure by presenting either another challenge (for\n        expected authentication/authorization-related failures) or a server\n        error page (for anything else).\n        '
    if result.check(error.Unauthorized, error.LoginFailed):
        return UnauthorizedResource(result._credentialFactories)
    else:
        log.err(result, 'HTTPAuthSessionWrapper.getChildWithDefault encountered unexpected error')
        return ErrorPage(500, None, None)

dataset/ETHPy150Open twisted/twisted/twisted/web/_auth/wrapper.py HTTPAuthSessionWrapper._loginFailed/VarMisuse@33/98 `self`->`result`