Commit 6413dcc2 by McKenzie Welter Committed by GitHub

Merge pull request #15804 from edx/McKenzieW/discount-data-retrieval-failure

Make is_discounted False when failing to retrieve discount data
parents 39cb7504 f11a4cf5
...@@ -647,6 +647,9 @@ class ProgramMarketingDataExtender(ProgramDataExtender): ...@@ -647,6 +647,9 @@ class ProgramMarketingDataExtender(ProgramDataExtender):
}) })
except (ConnectionError, SlumberBaseException, Timeout): except (ConnectionError, SlumberBaseException, Timeout):
log.exception('Failed to get discount price for following product SKUs: %s ', ', '.join(skus)) log.exception('Failed to get discount price for following product SKUs: %s ', ', '.join(skus))
self.data.update({
'discount_data': {'is_discounted': False}
})
else: else:
is_learner_eligible_for_one_click_purchase = False is_learner_eligible_for_one_click_purchase = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment