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: try:
result = utils.REGEX_END_DIGITS.findall(plexKey)[0] result = utils.REGEX_END_DIGITS.findall(plexKey)[0]
except IndexError: except IndexError:
result = (None, None) return (None, None)
else: else:
result[1] = utils.cast(int, result[1]) return (result[0], utils.cast(int, result[1]))
return result
def ParseContainerKey(containerKey): def ParseContainerKey(containerKey):