mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
fix bug with torrent commands with no numbers, close #57
This commit is contained in:
parent
4d9a673b5a
commit
5afac2bab0
@ -244,7 +244,7 @@ def main():
|
|||||||
left, sep, right = elem.partition('-')
|
left, sep, right = elem.partition('-')
|
||||||
if right:
|
if right:
|
||||||
choices.append(list(range(int(left), int(right) + 1)))
|
choices.append(list(range(int(left), int(right) + 1)))
|
||||||
else:
|
elif left != '':
|
||||||
choices.append([int(left)])
|
choices.append([int(left)])
|
||||||
|
|
||||||
# flatten list
|
# flatten list
|
||||||
|
Loading…
Reference in New Issue
Block a user