Skip to content

Commit

Permalink
Fix bug in breaklock command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Mar 21, 2022
1 parent a9e043e commit 2fa21cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions emborg/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,11 @@ def __enter__(self):
self.data_dir = data_dir

# perform locking
if self.requires_exclusivity:
lockfile = self.lockfile = data_dir / self.resolve(LOCK_FILE)
lockfile = self.lockfile = data_dir / self.resolve(LOCK_FILE)
# This must be outside if statement because of breaklock command.
# It want to remove lock file even though it does not require exclusivity.

if self.requires_exclusivity:
# check for existence of lockfile
if lockfile.exists():
report = True
Expand Down

0 comments on commit 2fa21cb

Please sign in to comment.