def cmd_set_color(self, *args):
    color = args[0][0]
    try:
        if color.startswith('#'):
            self._magic_blue.set_color(webcolors.hex_to_rgb(color))
        else:
            self._magic_blue.set_color(webcolors.name_to_rgb(color))
    except ValueError as e:
        logger.error('Invalid color value : {}'.format(str(e)))
        self.print_usage('set_color')
def cmd_set_color(self, *args):
    color = args[0][0]
    try:
        if color.startswith('#'):
            self._magic_blue.set_color(webcolors.hex_to_rgb(color))
        else:
            self._magic_blue.set_color(webcolors.name_to_rgb(color))
    except ValueError as e:
        logger.error('Invalid color value : {}'.format(str(e)))
        self.print_usage('set_color')