(self)
Context guard to handle BASIC exceptions.
Context guard to handle BASIC exceptions.
Context guard to handle BASIC exceptions .
def _handle_exceptions(self):
        """Context guard to handle BASIC exceptions."""
        try:
            yield
        except error.Break:
            self.sound.stop_all_sound()
            self._prompt = False
        except error.BASICError as e:
            self._handle_error(e)
            self._prompt = True
        except error.Exit:
            raise
def _handle_exceptions ( self ) : try : yield except error . Break : self . sound . stop_all_sound ( ) self . _prompt = False except error . BASICError as e : self . _handle_error ( e ) self . _prompt = True except error . Exit : raise