Commit c1920841 authored by Jacek Sowiński's avatar Jacek Sowiński

Fix code formatting in PostponeCommand

parent 5718e113
...@@ -60,6 +60,7 @@ class PostponeCommand(Command): ...@@ -60,6 +60,7 @@ class PostponeCommand(Command):
todos = [] todos = []
invalid_numbers = [] invalid_numbers = []
for number in self.args[:-1]: for number in self.args[:-1]:
try: try:
todos.append(self.todolist.todo(number)) todos.append(self.todolist.todo(number))
...@@ -72,10 +73,8 @@ class PostponeCommand(Command): ...@@ -72,10 +73,8 @@ class PostponeCommand(Command):
elif len(invalid_numbers) == 1 and len(todos) == 0: elif len(invalid_numbers) == 1 and len(todos) == 0:
self.error("Invalid todo number given.") self.error("Invalid todo number given.")
else: else:
try: try:
pattern = self.args[-1] pattern = self.args[-1]
self.printer.add_filter(PrettyPrinterNumbers(self.todolist)) self.printer.add_filter(PrettyPrinterNumbers(self.todolist))
if len(todos) > 0: if len(todos) > 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment