From 6ab0004fe8964fcb24f178dafdf5681230786067 Mon Sep 17 00:00:00 2001 From: Gina Trapani Date: Tue, 14 Feb 2012 18:02:11 -0800 Subject: [PATCH] Fix IndexError: list index out of range when there's a blank line in todo.txt (like after deleting a task) --- .todo.actions.d/birdseye.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.todo.actions.d/birdseye.py b/.todo.actions.d/birdseye.py index c9770e6..05b5921 100644 --- a/.todo.actions.d/birdseye.py +++ b/.todo.actions.d/birdseye.py @@ -120,7 +120,7 @@ def main(argv): for line in f: prioritized = False words = line.split() - if words[0][0:1] == ("("): + if words and words[0].startswith("("): prioritized = True for word in words: if word[0:2] == "p:" or word[0:2] == "p-" or word[0:1] == "+":