def _from_hex(self, color):
        try:
            self.rgb = from_html(color)
        except (__HOLE__, ValueError):
            raise ColorNotFound("Did not find htmlcode: " + repr(color))

        self.representation = 4
        self._init_number()
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/colorlib/styles.py/Color._from_hex