From 5b32021e261e40a7c5a59178fc27e828186b69e6 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 25 Jul 2021 11:03:34 +0200 Subject: [PATCH] Fix Regression: AttributeError --- resources/lib/library_sync/sections.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lib/library_sync/sections.py b/resources/lib/library_sync/sections.py index affdaebb..4b8a28d6 100644 --- a/resources/lib/library_sync/sections.py +++ b/resources/lib/library_sync/sections.py @@ -106,6 +106,8 @@ class Section(object): def __eq__(self, section): """Sections compare equal if their section_id, name and plex_type (first prio) OR section_type (if there is no plex_type is set) compare equal. """ + if not isinstance(section, Section): + return False return (self.section_id == section.section_id and self.name == section.name and (self.plex_type == section.plex_type if self.plex_type else