mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Need to use hasattr to check for stripe_customer_id.
This commit is contained in:
@@ -2257,7 +2257,7 @@ class GoldPayment(Templated):
|
||||
|
||||
class GoldSubscription(Templated):
|
||||
def __init__(self, user):
|
||||
if user.stripe_customer_id:
|
||||
if hasattr(user, 'stripe_customer_id'):
|
||||
details = get_subscription_details(user)
|
||||
else:
|
||||
details = None
|
||||
|
||||
Reference in New Issue
Block a user