We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ef4abe commit c2d9491Copy full SHA for c2d9491
readthedocs/subscriptions/views.py
@@ -119,6 +119,14 @@ def get_context_data(self, **kwargs):
119
features = {}
120
for item in stripe_subscription.items.all().select_related("price__product"):
121
rtd_product = get_product(item.price.product.id)
122
+ if not rtd_product:
123
+ # Skip products that are not defined in RTD_PRODUCTS
124
+ log.warning(
125
+ "Product not found in RTD_PRODUCTS",
126
+ stripe_product_id=item.price.product.id,
127
+ )
128
+ continue
129
+
130
product = {
131
"stripe_price": item.price,
132
"quantity": item.quantity,
0 commit comments