Skip to content

Commit f46e147

Browse files
committed
changed KeyError to ValueError
1 parent ad3620a commit f46e147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf_pandas/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def set_up_criteria(criteria: Union[dict, Iterable] = None) -> ChainMap:
4747

4848
if criteria is None:
4949
if not OPTIONS["custom_criteria"]:
50-
raise KeyError(
50+
raise ValueError(
5151
"criteria needs to be defined either using set_options or directly input."
5252
)
5353
criteria_it = OPTIONS["custom_criteria"]

0 commit comments

Comments
 (0)