From 10d24dd35f20c0f3f114d0e365cfe25a821a8444 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 11 Dec 2007 00:04:38 +0000 Subject: [PATCH] * src/DbManager.py: fixed issue in breaking lock on lock which has already been removed 2007-12-10 Douglas S. Blank svn: r9485 --- ChangeLog | 4 ++++ src/DbManager.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bac7a8720..d4cfc94ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-12-10 Douglas S. Blank + * src/DbManager.py: fixed issue in breaking lock on lock + which has already been removed + 2007-12-10 Douglas S. Blank * src/GrampsCfg.py: Fixed bug in being able to edit the uneditable * src/BasicUtils/_NameDisplay.py: Renamed standard name patterns diff --git a/src/DbManager.py b/src/DbManager.py index ea170df3b..47000386b 100644 --- a/src/DbManager.py +++ b/src/DbManager.py @@ -356,7 +356,8 @@ class DbManager: the display appropriately. """ try: - os.unlink(os.path.join(self.lock_file, "lock")) + if os.path.exists(os.path.join(self.lock_file, "lock")): + os.unlink(os.path.join(self.lock_file, "lock")) store, node = self.selection.get_selected() dbpath = store.get_value(node, PATH_COL) (tval, last) = time_val(dbpath)