Skip to content

Commit

Permalink
Merge branch 'develop' into 'main'
Browse files Browse the repository at this point in the history
chore: Fix bug get_stripe_subscription

See merge request locker/api-core!441
  • Loading branch information
phuongntt-cystack committed May 10, 2024
2 parents 5377fe2 + 8bce1f6 commit bf833fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion locker_server/core/entities/user_plan/pm_user_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ def is_personal_trial_applied(self) -> bool:
def get_stripe_subscription(self):
if not self.pm_stripe_subscription:
return None
return stripe.Subscription.retrieve(self.pm_stripe_subscription)
try:
return stripe.Subscription.retrieve(self.pm_stripe_subscription)
except:
return None

def get_plan_type_alias(self) -> str:
return self.pm_plan.alias
Expand Down

0 comments on commit bf833fe

Please sign in to comment.