We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51e9f2 commit 90c18b5Copy full SHA for 90c18b5
MongoBackup/Common/Lock.py
@@ -24,6 +24,7 @@ def acquire(self):
24
raise Exception, "Could not acquire lock!", None
25
26
def release(self):
27
- logging.debug("Releasing exclusive lock on file: %s" % self.lock_file)
28
- self._lock.close()
29
- return os.remove(self.lock_file)
+ if self._lock:
+ logging.debug("Releasing exclusive lock on file: %s" % self.lock_file)
+ self._lock.close()
30
+ return os.remove(self.lock_file)
0 commit comments