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