def sync_full(self):
        try:
            sync_from_server_errors = self.notes_db.sync_full()

        except SyncError, e:
            self.view.show_error('Sync error', e)
        except WriteError, e:
            emsg = "Please check nvpy.log.\n" + str(e)
            self.view.show_error('Sync error', emsg)
            exit(1)

        else:
            # regenerate display list
            # reselect old selection
            # put cursor where it used to be.
            self.view.refresh_notes_list()

            if 0 > sync_from_server_errors:
                self.view.show_error('Error syncing notes from server', 'Error syncing %d notes from server. Please check nvpy.log for details.' % (sync_from_server_errors,))
dataset/ETHPy150Open cpbotha/nvpy/nvpy/nvpy.py/Controller.sync_full/swapped operands of `>`