* src/DbManager.py: fixed issue in breaking lock on lock

which has already been removed

2007-12-10  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r9485
This commit is contained in:
Doug Blank 2007-12-11 00:04:38 +00:00
parent 1663cd245b
commit 10d24dd35f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2007-12-10 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/DbManager.py: fixed issue in breaking lock on lock
which has already been removed
2007-12-10 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/GrampsCfg.py: Fixed bug in being able to edit the uneditable
* src/BasicUtils/_NameDisplay.py: Renamed standard name patterns

View File

@ -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)