From 0d3c8329c069dbb8856c6d2fc15ff42a7ff517ea Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Mon, 6 Apr 2020 16:28:01 +0200 Subject: [PATCH] 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). --- dnf-json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnf-json b/dnf-json index 0a146dd2e..a8af924d5 100755 --- a/dnf-json +++ b/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":