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 <supakeen@redhat.com>
This commit is contained in:
Simon de Vlieger 2025-06-16 11:38:37 +02:00 committed by Brian C. Lane
parent cde6e1e114
commit 3bbacb5703

View file

@ -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):