def start_interactive_mode(self):
    print('Magic Blue interactive shell v{}'.format(__version__))
    print('Type "help" for a list of available commands')
    str_cmd = ''
    while (str_cmd != 'exit'):
        try:
            str_cmd = input('> ').strip()
            if str_cmd:
                self.exec_cmd(str_cmd)
        except (EOFError, KeyboardInterrupt):
            self.cmd_exit()
            return
        except Exception as e:
            logger.error('Unexpected error with command "{}": {}'.format(str_cmd, str(e)))
def start_interactive_mode(self):
    print('Magic Blue interactive shell v{}'.format(__version__))
    print('Type "help" for a list of available commands')
    str_cmd = 
    while (str_cmd != 'exit'):
        try:
            str_cmd = input('> ').strip()
            if str_cmd:
                self.exec_cmd(str_cmd)
        except (EOFError, KeyboardInterrupt):
            self.cmd_exit()
            return
        except Exception as e:
            logger.error('Unexpected error with command "{}": {}'.format(str_cmd, str(e)))