Skip to content

Commit

Permalink
fix: get_site_plan error for blank dict fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Jul 16, 2024
1 parent c62e834 commit 2756478
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions press/api/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ def get_site_plans():
# If release_group isn't empty (means Restricted Site Plan) and team has not access to this kind of plan, Skip the plan
if (
not has_team_access_to_restricted_site_plans
and plan.name in plan_details_dict
and plan_details_dict[plan.name]["release_groups"]
):
continue
Expand Down

0 comments on commit 2756478

Please sign in to comment.