Skip to content

Commit

Permalink
Merge pull request #186 from olehermanse/pretty
Browse files Browse the repository at this point in the history
Fixed crash when build is not a list
  • Loading branch information
larsewi committed Jan 24, 2024
2 parents 052a3ef + 2bdd9e5 commit 143d17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfbs/cfbs_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _find_all_module_objects(self):
modules += data["index"].values()
if "provides" in data and type(data["provides"]) in (dict, OrderedDict):
modules += data["provides"].values()
if "build" in data and type(data["build"]):
if "build" in data and type(data["build"]) is list:
modules += data["build"]
return modules

Expand Down

0 comments on commit 143d17b

Please sign in to comment.