MCPcopy
hub / github.com/borgbackup/borg / __exit__

Method __exit__

src/borg/storelocking.py:89–93  ·  view source on GitHub ↗
(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

87 return self.acquire()
88
89 def __exit__(self, exc_type, exc_val, exc_tb):
90 ignore_not_found = exc_type is not None
91 # if there was an exception, try to release the lock,
92 # but don't raise another exception while trying if it was not there.
93 self.release(ignore_not_found=ignore_not_found)
94
95 def __repr__(self):
96 return f"<{self.__class__.__name__}: {self.id!r}>"

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.95

Tested by

no test coverage detected