Do not catch exceptions if checksum calc goes awry
This commit is contained in:
parent
923c413921
commit
e460aea7e8
1 changed files with 5 additions and 8 deletions
|
@ -98,15 +98,12 @@ class API(object):
|
|||
|
||||
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'),
|
||||
self.item.get('updatedAt',
|
||||
self.item.get('addedAt',
|
||||
1541572987))))
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
def plex_id(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue