1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

fix bug with torrent commands with no numbers, close #57

This commit is contained in:
Viktor Stanchev 2015-08-30 22:34:49 -07:00
parent 4d9a673b5a
commit 5afac2bab0

View File

@ -244,7 +244,7 @@ def main():
left, sep, right = elem.partition('-')
if right:
choices.append(list(range(int(left), int(right) + 1)))
else:
elif left != '':
choices.append([int(left)])
# flatten list