X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/a2447bf8728f9cd3441628e7f59cbd8828989cba..d0dcd579031070fca1a8138b86af24c538f7f6d0:/tasklib/backends.py diff --git a/tasklib/backends.py b/tasklib/backends.py index 76fce88..6e7d918 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -323,8 +323,10 @@ class TaskWarrior(Backend): id_lines = [l for l in output if l.startswith('Created task ')] # Complain loudly if it seems that more tasks were created - # Should not happen - if len(id_lines) != 1 or len(id_lines[0].split(' ')) != 3: + # Should not happen. + # Expected output: Created task 1. + # Created task 1 (recurrence template). + if len(id_lines) != 1 or len(id_lines[0].split(' ')) not in (3, 5): raise TaskWarriorException("Unexpected output when creating " "task: %s" % '\n'.join(id_lines))