Merge pull request #35 from charrea6/master

Fix missing check for None in __eq__
This commit is contained in:
Michael Shepanski 2015-12-06 15:58:08 -05:00
commit f8c092393c

View file

@ -20,7 +20,7 @@ class Video(PlexPartialObject):
TYPE = None TYPE = None
def __eq__(self, other): def __eq__(self, other):
return self.type == other.type and self.key == other.key return other is not None and self.type == other.type and self.key == other.key
def __repr__(self): def __repr__(self):
title = self.title.replace(' ','.')[0:20] title = self.title.replace(' ','.')[0:20]