nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 9ea34d63d930812712e9274fec0fab588705a9f7
parent 4970b0c88dd9e48542ccbe173cbbe7b7a2bdc516
Author: Eric Davis <edavis@insanum.com>
Date:   Sun,  6 Jul 2014 22:26:55 -0700

fixed crash that occured when the note list is empty

Diffstat:
Mview_titles.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/view_titles.py b/view_titles.py @@ -20,9 +20,10 @@ def update_note_list(self, search_string): self.ndb.filter_notes(self.search_string) self.body[:] = \ urwid.SimpleFocusListWalker(self.get_note_titles()) - self.focus_position = 0 if len(self.note_list) == 0: self.status_message(u'No notes found!') + else: + self.focus_position = 0 def format_title(self, note): """