This commit is contained in:
Kovid Goyal 2010-09-23 21:51:57 -06:00
parent 448aa8497b
commit c792c47a65
2 changed files with 2 additions and 2 deletions

View File

@ -443,6 +443,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
self.add_format(id, format, stream, index_is_id=True, self.add_format(id, format, stream, index_is_id=True,
path=tpath, notify=False) path=tpath, notify=False)
self.conn.execute('UPDATE books SET path=? WHERE id=?', (path, id)) 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) self.data.set(id, self.FIELD_MAP['path'], path, row_is_id=True)
# Delete not needed directories # Delete not needed directories
if current_path and os.path.exists(spath): if current_path and os.path.exists(spath):

View File

@ -195,8 +195,7 @@ class Server(Thread):
job.result = cPickle.load(open(worker.rfile, 'rb')) job.result = cPickle.load(open(worker.rfile, 'rb'))
os.remove(worker.rfile) os.remove(worker.rfile)
except: except:
import traceback pass
traceback.print_exc()
job.duration = time.time() - job.start_time job.duration = time.time() - job.start_time
self.changed_jobs_queue.put(job) self.changed_jobs_queue.put(job)