From 5afac2bab0ecc942fdfd7da5567cf7832e7308bd Mon Sep 17 00:00:00 2001 From: Viktor Stanchev Date: Sun, 30 Aug 2015 22:34:49 -0700 Subject: [PATCH] fix bug with torrent commands with no numbers, close #57 --- pirate/pirate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pirate/pirate.py b/pirate/pirate.py index 54e687f..b3c6383 100755 --- a/pirate/pirate.py +++ b/pirate/pirate.py @@ -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