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:
parent
60ac23d843
commit
64b102c297
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue