tools/mpp: raise exception from None

Raise the `ValueError` that is thrown when we are unable to get
the secrets from `None`.
This commit is contained in:
Christian Kellner 2021-06-30 15:57:30 +00:00 committed by Tom Gundersen
parent c600ea60a4
commit f37c83ec25

View file

@ -170,7 +170,7 @@ def _dnf_repo(conf, desc, basedir):
host_subscriptions = Subscriptions.from_host_system()
secrets = host_subscriptions.get_secrets(url)
except RuntimeError as e:
raise ValueError(f"Error gettting secrets: {e.args[0]}")
raise ValueError(f"Error getting secrets: {e.args[0]}") from None
if secrets:
if "ssl_ca_cert" in secrets: