Skip to content

Commit

Permalink
umu_runtime: update file lock debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jul 28, 2024
1 parent bb97793 commit cef31d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion umu/umu_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ def _restore_umu(
lock: FileLock = FileLock(f"{UMU_LOCAL}/umu.lock")

try:
log.debug("Acquiring file lock '%s'...", lock.lock_file)
lock.acquire()
log.debug("Acquired lock 'umu.lock'")

if UMU_LOCAL.joinpath("umu").is_file():
raise FileExistsError
Expand All @@ -441,4 +441,5 @@ def _restore_umu(
except BaseException:
raise
finally:
log.debug("Released file lock '%s'", lock.lock_file)
lock.release()

0 comments on commit cef31d9

Please sign in to comment.