You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to loop through all apps and get the price for each addon associated with the app to calculate the total cost of the app. I thought the code below should work but plan.price is None:
for app in conn.apps():
price_breakdown = []
addon_list = app.addons()
for addon in addon_list:
plan = addon.plan
price_breakdown.append((
'{}@{}'.format(app.name, plan.name),
plan.price.cents))
I get the following trace:
File "/vagrant/tasks.py", line 129, in check_prices
plan.price.cents))
AttributeError: 'NoneType' object has no attribute 'cents'
Any thoughts on how I can get the pricing info for each app addon?
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
I'm running python 2.7.6
I'm trying to loop through all apps and get the price for each addon associated with the app to calculate the total cost of the app. I thought the code below should work but plan.price is None:
I get the following trace:
Any thoughts on how I can get the pricing info for each app addon?
Thank you.
The text was updated successfully, but these errors were encountered: