(self, interface, session)
Crash context guard.
Crash context guard.
Crash context guard .
def protect(self, interface, session):
        """Crash context guard."""
        try:
            yield
        except (error.Exit, error.Reset):
            raise
        except BaseException:
            if not self._bluescreen(session._impl, interface, *sys.exc_info()):
                raise
            interface.pause(PAUSE_MESSAGE)
            interface.pause(PAUSE_MESSAGE)
def protect ( self , interface , session ) : try : yield except ( error . Exit , error . Reset ) : raise except BaseException : if not self . _bluescreen ( session . _impl , interface , * sys . exc_info ( ) ) : raise interface . pause ( PAUSE_MESSAGE ) interface . pause ( PAUSE_MESSAGE )