Fix TypeError
This commit is contained in:
parent
41ec923a30
commit
b08b3dc443
1 changed files with 2 additions and 3 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue