From 64b102c2971f8c2a9793bb5d08f1922d858731d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Mon, 5 Aug 2024 19:01:25 +0200 Subject: [PATCH] osbuild-depsolve-dnf: fix traceback in case of repository error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a bug in the `osbuild-depsolve-dnf`, which would cause the `RepoError` to not be handled and producing a traceback. Signed-off-by: Tomáš Hozza --- tools/osbuild-depsolve-dnf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/osbuild-depsolve-dnf b/tools/osbuild-depsolve-dnf index 1beb6ffc..37f5c39f 100755 --- a/tools/osbuild-depsolve-dnf +++ b/tools/osbuild-depsolve-dnf @@ -57,8 +57,8 @@ def solve(request, cache_dir): arguments = request["arguments"] with tempfile.TemporaryDirectory() as persistdir: - solver = Solver(request, persistdir, cache_dir) try: + solver = Solver(request, persistdir, cache_dir) if command == "dump": result = solver.dump() elif command == "depsolve":