Merge pull request #15804 from edx/McKenzieW/discount-data-retrieval-failure
Make is_discounted False when failing to retrieve discount data
This commit is contained in:
@@ -647,6 +647,9 @@ class ProgramMarketingDataExtender(ProgramDataExtender):
|
||||
})
|
||||
except (ConnectionError, SlumberBaseException, Timeout):
|
||||
log.exception('Failed to get discount price for following product SKUs: %s ', ', '.join(skus))
|
||||
self.data.update({
|
||||
'discount_data': {'is_discounted': False}
|
||||
})
|
||||
else:
|
||||
is_learner_eligible_for_one_click_purchase = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user