Skip to content

Commit

Permalink
do not try to convert null values in comparer
Browse files Browse the repository at this point in the history
  • Loading branch information
geo-martino committed Dec 3, 2024
1 parent 9756000 commit 16e5b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion musify/processors/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def compare[T: Any](self, item: T, reference: T | None = None) -> bool:

def _convert_expected(self, value: Any) -> None:
"""Driver for converting expected values to the same type as given value"""
if self._converted:
if self._converted or value is None:
return

if isinstance(value, int):
Expand Down

0 comments on commit 16e5b00

Please sign in to comment.