You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In custom validation function, when I return False I get the following error
File "/usr/local/lib/python2.7/dist-packages/pykwalify/core.py", line 238, in _handle_func
raise CoreError(u"Error when running extension function : {}".format(func))
pykwalify.errors.CoreError: <CoreError: error code 3: Error when running extension function : is_valid_ipv4: Path: '/'>
But it is working fine when I raise the assertion error. Is this expected behavior ?
File "/usr/local/lib/python2.7/dist-packages/pykwalify/core.py", line 234, in _handle_func
ret = method(value, rule, path)
File "/home/xxx/yaml/val.py", line 31, in is_valid_ipv4
raise AssertionError(ipError)
AssertionError: Invalid IP
Thanks
~Hari
The text was updated successfully, but these errors were encountered:
Hello,
In custom validation function, when I return False I get the following error
File "/usr/local/lib/python2.7/dist-packages/pykwalify/core.py", line 238, in _handle_func
raise CoreError(u"Error when running extension function : {}".format(func))
pykwalify.errors.CoreError: <CoreError: error code 3: Error when running extension function : is_valid_ipv4: Path: '/'>
But it is working fine when I raise the assertion error. Is this expected behavior ?
File "/usr/local/lib/python2.7/dist-packages/pykwalify/core.py", line 234, in _handle_func
ret = method(value, rule, path)
File "/home/xxx/yaml/val.py", line 31, in is_valid_ipv4
raise AssertionError(ipError)
AssertionError: Invalid IP
Thanks
~Hari
The text was updated successfully, but these errors were encountered: