ralphbean / taskw

python taskwarrior api
http://threebean.org
GNU General Public License v3.0
176 stars 47 forks source link

warrior.py: Fix Python 3 detecting missing task #128

Closed jayvdb closed 3 years ago

jayvdb commented 5 years ago

Replaces 'foo' in e with 'foo' in str(e).

Fixes https://github.com/ralphbean/taskw/issues/127

coddingtonbear commented 3 years ago

Actually, I think #130 solves this same problem, just in a slightly more pythonic way. Thanks for your patch, though!

jayvdb commented 3 years ago

fwiw, it was intentional to not do it that way. The other approach broke Python 2. https://github.com/ralphbean/taskw/pull/130#issuecomment-740326022 Can be fixed using something like https://stackoverflow.com/questions/21367320/searching-for-equivalent-of-filenotfounderror-in-python-2 .