From 2ebe7033e0a407f46f3401a6a25ccb6d17389298 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Tue, 26 Sep 2023 05:46:33 -0700 Subject: [PATCH] Correct string formatting The input to the RuntimeError constructor is not a format string. --- whipper/command/cd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/whipper/command/cd.py b/whipper/command/cd.py index cee7a01..b9c95c9 100644 --- a/whipper/command/cd.py +++ b/whipper/command/cd.py @@ -503,8 +503,7 @@ Log files will log the path to tracks relative to this directory. else: raise RuntimeError("track can't be ripped. " "Rip attempts number is equal " - "to %d", - self.options.max_retries) + "to {}".format(self.options.max_retries)) if trackResult in self.skipped_tracks: print("Skipping CRC comparison for track %d " "due to rip failure" % number)