fix lock file checking bug

This commit is contained in:
Andrey Pohilko 2013-07-22 17:39:36 +04:00
parent 6fb7a4d004
commit 42e7f1220d

View File

@ -506,7 +506,7 @@ class TankCore:
def release_lock(self):
self.config.file = None
if os.path.exists(self.lock_file):
if self.lock_file and os.path.exists(self.lock_file):
os.remove(self.lock_file)
def __there_is_locks(self):