Skip to content

Commit

Permalink
Add fallback value for config (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro authored Sep 13, 2022
1 parent eaaf034 commit f879f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astronomer/providers/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def get_provider_info() -> Dict[str, Any]:
# Required.
"package-name": "astronomer-providers",
"name": "Astronomer Providers",
"description": config["metadata"]["description"],
"versions": [config["metadata"]["version"]],
"description": config.get("metadata", "description", fallback=""),
"versions": [config.get("metadata", "version", fallback="")],
# Optional.
"hook-class-names": [],
"extra-links": [],
Expand Down

0 comments on commit f879f81

Please sign in to comment.