osbuild-depsolve-dnf: fix traceback in case of repository error

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 <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-08-05 19:01:25 +02:00 committed by Tomáš Hozza
parent 60ac23d843
commit 64b102c297

View file

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