fix: skip condition check for None values

This commit is contained in:
lucasheld 2022-12-29 00:17:57 +01:00
parent bc53116d9f
commit 1e4be04ad7

View file

@ -188,6 +188,8 @@ def _check_argument_conditions(valid_params, kwargs) -> None:
for valid_param in valid_params:
if valid_param in kwargs:
value = kwargs[valid_param]
if value is None:
continue
conditions = valid_params[valid_param]
min_ = conditions.get("min")
max_ = conditions.get("max")