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):
|
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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue