curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #03507
[Merge] ~ogayot/curtin:timeout-f-string into curtin:master
Olivier Gayot has proposed merging ~ogayot/curtin:timeout-f-string into curtin:master.
Commit message:
util: fix lack of string interpolation when raising TiemoutError
Requested reviews:
Dan Bungert (dbungert)
For more details, see:
https://code.launchpad.net/~ogayot/curtin/+git/curtin/+merge/464302
--
Your team curtin developers is subscribed to branch curtin:master.
diff --git a/curtin/util.py b/curtin/util.py
index d9b7962..a10f1bf 100644
--- a/curtin/util.py
+++ b/curtin/util.py
@@ -1449,7 +1449,7 @@ class FlockEx:
LOG.debug(f"Try {i}: lock acquisition failed with {ex}")
time.sleep(self.timeout / self.retries)
else:
- raise TimeoutError("Failed to acquire LOCK_EX on {self.device}")
+ raise TimeoutError(f"Failed to acquire LOCK_EX on {self.device}")
def __exit__(self, *args):
LOG.debug(f"Releasing fcntl LOCK_EX on {self.device}")
Follow ups