Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

IndexError: list index out of range #17

Open
tasdikrahman opened this issue Mar 22, 2017 · 1 comment
Open

IndexError: list index out of range #17

tasdikrahman opened this issue Mar 22, 2017 · 1 comment
Labels

Comments

@tasdikrahman
Copy link
Owner

Steps to reproduce it

  • Delete all the notes present in the db
  • Choose the option to view a diary entry
  • this fails even when you are trying to search for a note when no notes are present there
@KristoferSoler
Copy link

I found the problem and solve it. If you go to the tnote.py file, line 165 there is
if entries:

This is not correct cause this section has the error message "Your search had no results. Press enter to return to the main menu!".

To solve it, just write if not entries: and that's all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants