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