Skip to content

Commit 13e4029

Browse files
authored
fix: Fix some None-related issues (#51)
1 parent 400b58d commit 13e4029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conda_metadata_app/pages/main_page.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ def build_richtable(data, **kwargs):
12331233
rendered_recipe = data.get("rendered_recipe", {})
12341234
if recipe := rendered_recipe.get("recipe"): # recipe.yaml
12351235
recipe_format = f"recipe.yaml v{recipe.get('schema_version', 1)}"
1236-
rattler_build_version = rendered_recipe.get("system_tools").get("rattler-build", "")
1236+
rattler_build_version = rendered_recipe.get("system_tools", {}).get("rattler-build", "")
12371237
built_with = f"`rattler-build {rattler_build_version}`"
12381238
else:
12391239
recipe_format = "meta.yaml"
@@ -1244,7 +1244,7 @@ def build_richtable(data, **kwargs):
12441244
built_with = f"`conda-build {conda_build_version}`"
12451245
if conda_version:
12461246
built_with += f", `conda {conda_version}`"
1247-
extra = rendered_recipe.get("extra", {}) or recipe.get("extra", {})
1247+
extra = rendered_recipe.get("extra", {}) or (recipe and recipe.get("extra", {})) or {}
12481248
for user in extra.get("recipe-maintainers", ["*N/A*"]):
12491249
if user == "*N/A*":
12501250
maintainers.append(user)

0 commit comments

Comments
 (0)