Fix Regression: AttributeError
This commit is contained in:
parent
a18b971564
commit
262315c3e7
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ class Section(object):
|
||||||
Sections compare equal if their section_id, name and plex_type (first
|
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
|
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
|
return (self.section_id == section.section_id and
|
||||||
self.name == section.name and
|
self.name == section.name and
|
||||||
(self.plex_type == section.plex_type if self.plex_type else
|
(self.plex_type == section.plex_type if self.plex_type else
|
||||||
|
|
Loading…
Reference in a new issue