diff --git a/sources/org.osbuild.files b/sources/org.osbuild.files index 0444d596..34d5334a 100755 --- a/sources/org.osbuild.files +++ b/sources/org.osbuild.files @@ -110,7 +110,7 @@ def main(options, checksums, cache, output): try: if isinstance(urls[checksum], dict): # check if url needs rhsm secrets - if urls[checksum].get("secrets").get("name") == "org.osbuild.rhsm": + if urls[checksum].get("secrets", {}).get("name") == "org.osbuild.rhsm": # rhsm secrets only need to be retrieved once and can then be reused if rhsm_secrets is None: try: