From 3bbacb5703f2cc23ade6ba7da2262742b3114371 Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Mon, 16 Jun 2025 11:38:37 +0200 Subject: [PATCH] solver/dnf5: switch base exception type libdnf5 changed error types [1], [2], [3] and they no longer inherit from `RuntimeError`; instead catch `Exception` which is the new common base type. This fixes issues in our CI. [1]: https://github.com/rpm-software-management/dnf5/pull/2124 [2]: https://github.com/rpm-software-management/dnf5/pull/2118#issuecomment-2876601471 [3]: https://bugzilla.redhat.com/show_bug.cgi?id=2365689 Signed-off-by: Simon de Vlieger --- osbuild/solver/dnf5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbuild/solver/dnf5.py b/osbuild/solver/dnf5.py index 5b75bcfe..0448d92f 100755 --- a/osbuild/solver/dnf5.py +++ b/osbuild/solver/dnf5.py @@ -172,7 +172,7 @@ class DNF5(SolverBase): repo_iter.next() self.base.get_repo_sack().load_repos(dnf5.repo.Repo.Type_AVAILABLE) - except RuntimeError as e: + except Exception as e: raise RepoError(e) from e if not any_repos_enabled(self.base):