dnf-json: change base error type
Even though `dnf.exceptions.RepoError` is documented as the base error, `dnf.exceptions.Error` is actually the base error (and also documented as such).
This commit is contained in:
parent
eb5b198205
commit
0d3c8329c0
1 changed files with 1 additions and 1 deletions
2
dnf-json
2
dnf-json
|
|
@ -93,7 +93,7 @@ module_platform_id = arguments["module_platform_id"]
|
|||
with tempfile.TemporaryDirectory() as persistdir:
|
||||
try:
|
||||
base = create_base(repos, module_platform_id, persistdir, cachedir, arch)
|
||||
except dnf.exceptions.RepoError as e:
|
||||
except dnf.exceptions.Error as e:
|
||||
exit_with_dnf_error("RepoError", f"Error occurred when setting up repo: {e}")
|
||||
|
||||
if command == "dump":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue