Skip to content

Commit 5afcfa8

Browse files
committed
records: updates 'get_error_path' helper
Signed-off-by: Pamfilos Fokianos <pamfilosf@gmail.com>
1 parent bb4cb11 commit 5afcfa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cap/modules/records/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, description, errors=None, **kwargs):
4343

4444
def get_error_path(error):
4545
"""Helper to return correct error path"""
46-
if isinstance(error.validator_value, str):
46+
if error.validator == "required":
4747
return list(error.path) + error.validator_value
4848
else:
4949
return list(error.path)

0 commit comments

Comments
 (0)