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:
McKenzie Welter
2017-08-14 11:48:55 -04:00
committed by GitHub

View File

@@ -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