def setValueFilter(self, key, value):
        if key not in self.value_filters:
            raise jasminApiCredentialError('%s is not a valid Filter' % key)

        try:
            self.value_filters[key] = re.compile(value)
        except __HOLE__:
            raise jasminApiCredentialError('%s is not a regex pattern: %s' % (key, value))
dataset/ETHPy150Open jookies/jasmin/jasmin/routing/jasminApi.py/CredentialGenerick.setValueFilter