Skip to content

Commit

Permalink
FIX build: set frozen_data as dict if no data
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Nov 25, 2022
1 parent 7a249f8 commit ce5b0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ak/ak_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _generate_repo_yaml(self, config, frozen):
config = yaml.safe_load(open(config).read())
frozen_data = {}
if local.path(frozen).is_file():
frozen_data = yaml.safe_load(open(frozen).read())
frozen_data = yaml.safe_load(open(frozen).read()) or {}

for key in config:
if config[key].get("prebuild"):
Expand Down

0 comments on commit ce5b0f7

Please sign in to comment.