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:
Lars Karlitski 2020-04-06 16:28:01 +02:00 committed by msehnout
parent eb5b198205
commit 0d3c8329c0

View file

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