def handler():
            nonlocal called
            called += 1
            raise ValueError("yeah sync")
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""