Add back line as per QuLogic

This commit is contained in:
Sam Manzi 2016-04-19 09:15:56 +10:00
parent 3f86dd3e25
commit 1d805510a7
No known key found for this signature in database
GPG Key ID: F4A16068AE36B402

View File

@ -219,6 +219,7 @@ class DbState(Callback):
fname = os.path.join(dirpath, "lock")
with open(fname, 'r', encoding='utf8') as ifile:
locked_by = ifile.read().strip()
locked = True
except (OSError, IOError):
pass
return (dirpath, locked, locked_by, backend)