GothenburgBitFactory / tasklib

A Python library for interacting with taskwarrior databases.
http://tasklib.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
147 stars 28 forks source link

Getting by empty string UUID is not handeled well #28

Closed tbabej closed 9 years ago

tbabej commented 9 years ago

Consider following snippet:

>>> from tasklib.task import TaskWarrior
>>> tw = TaskWarrior()
>>> tw.tasks.get(uuid='')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/tasklib/task.py", line 619, in get
ValueError: get() returned more than one Task -- it returned 6! Lookup parameters were {'uuid': ''}
>>> 
tbabej commented 9 years ago

Fixed with: 0110af91cb5bf3804efc35cb50c8430419af4313.