File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ def find_err_detail(exc_detail):
68
68
_label = get_label (key , exc_detail )
69
69
_value = exc_detail [key ]
70
70
if isinstance (_value , list ):
71
- return f"{ _label } :{ find_err_detail (_value )} "
71
+ for v in _value :
72
+ r = find_err_detail (ReturnDict ({key : v }, serializer = exc_detail .serializer ))
73
+ if r is not None :
74
+ return r
72
75
if isinstance (_value , ErrorDetail ):
73
76
return f"{ _label } :{ find_err_detail (_value )} "
74
77
if isinstance (_value , dict ) and len (_value .keys ()) > 0 :
@@ -78,7 +81,7 @@ def find_err_detail(exc_detail):
78
81
return _value
79
82
if isinstance (exc_detail , list ):
80
83
for v in exc_detail :
81
- r = find_err_detail (v )
84
+ r = find_err_detail (ReturnDict ( v , serializer = exc_detail . serializer . child ) )
82
85
if r is not None :
83
86
return r
84
87
You can’t perform that action at this time.
0 commit comments