From c792c47a652732ab6e948b566b270d76db00270f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 23 Sep 2010 21:51:57 -0600 Subject: [PATCH] ... --- src/calibre/library/database2.py | 1 + src/calibre/utils/ipc/server.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index 9c0397e21e..c323b1a2a2 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -443,6 +443,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns): self.add_format(id, format, stream, index_is_id=True, path=tpath, notify=False) self.conn.execute('UPDATE books SET path=? WHERE id=?', (path, id)) + self.conn.commit() self.data.set(id, self.FIELD_MAP['path'], path, row_is_id=True) # Delete not needed directories if current_path and os.path.exists(spath): diff --git a/src/calibre/utils/ipc/server.py b/src/calibre/utils/ipc/server.py index 1d14f6a128..380e2e074b 100644 --- a/src/calibre/utils/ipc/server.py +++ b/src/calibre/utils/ipc/server.py @@ -195,8 +195,7 @@ class Server(Thread): job.result = cPickle.load(open(worker.rfile, 'rb')) os.remove(worker.rfile) except: - import traceback - traceback.print_exc() + pass job.duration = time.time() - job.start_time self.changed_jobs_queue.put(job)