From 7aa8057f6b16277980c5296ed7b74bff913079c0 Mon Sep 17 00:00:00 2001 From: Otto Liljalaakso Date: Jan 22 2025 15:42:29 +0000 Subject: Fix formatting for error when mockbuild sources fails Raised rpkgError's error test included `%s`, but nothing was interpolated into that string. Obviously, the intent has been to produce an error with just a description string, so interpolate the second argument into the string. Signed-off-by: Otto Liljalaakso --- diff --git a/pyrpkg/cli.py b/pyrpkg/cli.py index bf2cfa1..56857fc 100644 --- a/pyrpkg/cli.py +++ b/pyrpkg/cli.py @@ -2478,7 +2478,7 @@ class cliClient(object): try: self.sources() except Exception as e: - raise rpkgError('Could not download sources: %s', e) + raise rpkgError('Could not download sources: %s' % e) mockargs = []