From 6dbd9947fa3262d63e459dd52305cb1e361265e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 22 Feb 2024 19:51:11 +0200 Subject: [PATCH] Allow comparing rating to None --- plextraktsync/util/Rating.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plextraktsync/util/Rating.py b/plextraktsync/util/Rating.py index f3fe101a80..4ac59a04c6 100644 --- a/plextraktsync/util/Rating.py +++ b/plextraktsync/util/Rating.py @@ -15,6 +15,9 @@ def __eq__(self, other): if isinstance(other, (int, float)): return self.rating == int(other) + if other is None: + return False + return self.rating == other.rating def __str__(self):