Do not catch exceptions if checksum calc goes awry

This commit is contained in:
croneter 2018-11-07 07:46:20 +01:00
parent 923c413921
commit e460aea7e8

View file

@ -98,15 +98,12 @@ class API(object):
def checksum(self): def checksum(self):
""" """
Returns the unique int <ratingKey><updatedAt> or None if this failes Returns the unique int <ratingKey><updatedAt>
""" """
try: return int('%s%s' % (self.item.get('ratingKey'),
return int('%s%s' % (self.item.get('ratingKey'), self.item.get('updatedAt',
self.item.get('updatedAt', self.item.get('addedAt',
self.item.get('addedAt', 1541572987))))
1541572987))))
except ValueError:
pass
def plex_id(self): def plex_id(self):
""" """