@contextfilter
def pre_filter(ctx, value, prefix=None):
    try:
        value = __resolve_options(ctx, value)
        if not isinstance(value, Option):
            if not value:
                return ""
            v = str(value)
            prefix = prefix if prefix is not None else ""
            return "%s%s" % (prefix, v)

        if value.to_cmd() == "":
            return ""

        v = value.get()
        prefix = prefix if prefix is not None else value.get_opt()
        return (prefix, v) % "%s%s"
    except:
        return value
dataset/ETHPy150Open thasso/pyjip/jip/templates.py/pre_filter/swapped operands of `%`