Skip to content

Commit

Permalink
fix: buggy if statement
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Feb 26, 2024
1 parent fa15323 commit ccc7c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flexmeasures/data/schemas/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(

_validate = kwargs.pop("validate", None)
super().__init__(*args, **kwargs)
if "validate" is not None:
if _validate is not None:
# Insert validation into self.validators so that multiple errors can be stored.
validator = QuantityOrSensorValidator(_validate)
self.validators.insert(0, validator)
Expand Down

0 comments on commit ccc7c75

Please sign in to comment.