Skip to content

Commit

Permalink
Add comment suggested by Matt
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan committed Feb 6, 2024
1 parent 9415c63 commit ce6626b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/organisations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ def save_as_free_subscription(self):
if not getattr(self.organisation, "subscription_information_cache", None):
return

# There is a weird bug where the cache is present, but the id is unset.
# See here for more: https://flagsmith.sentry.io/issues/4945988284/
if not self.organisation.subscription_information_cache.id:
return

Expand Down

0 comments on commit ce6626b

Please sign in to comment.