Skip to content

Commit

Permalink
Fix error message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaSprenger authored May 13, 2022
1 parent 0016e60 commit 1b563de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def __enter__(self) -> DownloadDirectory:
self.dirpath.mkdir(parents=True, exist_ok=True)
self.lock = InterProcessLock(str(self.dirpath / "lock"))
if not self.lock.acquire(blocking=False):
raise RuntimeError("Could not acquire download lock for {self.filepath}")
raise RuntimeError(f"Could not acquire download lock for {self.filepath}")
chkpath = self.dirpath / "checksum"
try:
with chkpath.open() as fp:
Expand Down

0 comments on commit 1b563de

Please sign in to comment.