Skip to content

Commit

Permalink
Set default for standard app API version (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
singhpranjali authored Aug 23, 2022
1 parent 2fa6aff commit 5923469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions marketplace/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def get_app(app_id, client: Optional[MarketPlaceClient] = None, **kwargs):

# Getting api version and list of capabilities for the application
app_service_path = f"api/applications/{app_id}"
app_info = client.get(path=app_service_path).json()
app_api_version = parse(app_info["api_version"])
app_info: dict = client.get(path=app_service_path).json()
app_api_version = parse(app_info.get("api_version", "0.0.1"))

capabilities = []
for capability in app_info["capabilities"]:
Expand Down

0 comments on commit 5923469

Please sign in to comment.