nncli

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

commit e21f3c7ae12851ee45bc222398197ea6eb429f32
parent cc58fbb0e370c22817eacbdd316b3d3e265c08a9
Author: Eric Davis <edavis@insanum.com>
Date:   Thu, 17 Jul 2014 00:08:26 -0700

fixed crash that occurs during first initial sync in gui mode

Diffstat:
Msncli.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sncli.py b/sncli.py @@ -243,7 +243,11 @@ def gui_update_view(self): if not self.do_gui: return - cur_key = self.view_titles.note_list[self.view_titles.focus_position].note['key'] + try: + cur_key = self.view_titles.note_list[self.view_titles.focus_position].note['key'] + except IndexError, e: + cur_key = None + pass self.view_titles.update_note_list(self.view_titles.search_string) self.view_titles.focus_note(cur_key)