nncli

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

commit 107e8ed8c0952644f59725fa1bf0212f2f4d1e13
parent 45851f00325110dcbb6cf2ba59044b13140211f2
Author: Eric Davis <edavis@insanum.com>
Date:   Sun, 13 Jul 2014 22:13:56 -0700

fixed crash that occurs during sync after offline changes

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

diff --git a/notes_db.py b/notes_db.py @@ -470,7 +470,8 @@ def sync_notes(self, server_sync=True, full_sync=True): if local_key != k: # if local_key was a different key it should be deleted local_deletes[local_key] = True - del local_updates[local_key] + if local_key in local_updates: + del local_updates[local_key] self.log('Synced note to server (key={0})'.format(local_key)) else: