aesophor / py-todo

📋 Lightweight reminder / todo-list in cli
https://www.reddit.com/r/unixporn/comments/9qy35q/oc_pytodo_a_lightweight_reminder_in_cli/
MIT License
107 stars 22 forks source link

Problem with color=true in config file #17

Closed jolupa closed 5 years ago

jolupa commented 5 years ago

Hi! I downloaded de latest version in github, manually, and when I enabled color = true in config file I encounter the next error: Traceback (most recent call last): File "/home/jolupa/.local/bin/todo", line 167, in <module> list_items() File "/home/jolupa/.local/bin/todo", line 94, in list_items date = '(' + item.__str__().split('(')[1] If I disable the color entry in the config file the problem disappears. Thanks

RewoundVHS commented 5 years ago

I did some testing and found this was caused by an oversight of mine. I didn't validate for items that did not have dates. I will issue a pull request with the solution to this bug. My apologies!

jolupa commented 5 years ago

Fixed! Thanks!