Skip to content
Snippets Groups Projects
Commit 4f832f47 authored by Bert Palm's avatar Bert Palm 🎇
Browse files

fixed hidden ValueError in flags: wrong value len did not raise error

parent fc7c1a8f
No related branches found
No related tags found
No related merge requests found
......@@ -307,6 +307,8 @@ class Flags:
# raises (correct) KeyError
try:
if pd.api.types.is_list_like(value) and len(value) != len(tmp):
raise ValueError
tmp[mask] = value
except Exception:
raise ValueError(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment