@ -155,7 +155,7 @@ class User :
# self.user_plan = []
# self.customer = {}
customer = stripe.customer.Customer.list(email=email).to_dict_recursive()['data']
free_plan = [item for item in self.plans if item['amount'] == 0]
free_plan = [item for item in self.plans if 'amount' in item and item['amount'] == 0]
if customer :
customer = customer[0]
else: