Commit f11a4cf5 by McKenzie Welter

updated exception handling

parent 0aaea6a0
...@@ -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