]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional: fix formatting of exception args
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 29 Aug 2025 14:26:15 +0000 (15:26 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 9 Sep 2025 07:57:51 +0000 (09:57 +0200)
The catch-all exception handler forgot the placeholder for
the exception details.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250829142616.2633254-3-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/asset.py

index b5a6136d365523c69cac129138c48f1f32af8f80..5c74adf2241021f9f68ed6645baa7766c2f79759 100644 (file)
@@ -173,7 +173,7 @@ class Asset:
                 continue
             except Exception as e:
                 tmp_cache_file.unlink()
-                raise AssetError(self, "Unable to download: " % e)
+                raise AssetError(self, "Unable to download: %s" % e)
 
         if not os.path.exists(tmp_cache_file):
             raise AssetError(self, "Download retries exceeded", transient=True)