Fix TypeError

This commit is contained in:
croneter 2018-11-06 14:11:47 +01:00
parent 41ec923a30
commit b08b3dc443

View file

@ -48,10 +48,9 @@ def GetPlexKeyNumber(plexKey):
try:
result = utils.REGEX_END_DIGITS.findall(plexKey)[0]
except IndexError:
result = (None, None)
return (None, None)
else:
result[1] = utils.cast(int, result[1])
return result
return (result[0], utils.cast(int, result[1]))
def ParseContainerKey(containerKey):