From 5d32a5c824c309cb31b8a742a37b99a4b1470a68 Mon Sep 17 00:00:00 2001 From: "Albert St. Aubin" Date: Wed, 28 Feb 2018 11:15:14 -0500 Subject: [PATCH] Return expected Dict when Discovery API fails or returns nothing --- openedx/core/djangoapps/catalog/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openedx/core/djangoapps/catalog/utils.py b/openedx/core/djangoapps/catalog/utils.py index a7d8be8a2e..6cea11d548 100644 --- a/openedx/core/djangoapps/catalog/utils.py +++ b/openedx/core/djangoapps/catalog/utils.py @@ -282,6 +282,7 @@ def get_course_runs_for_course(course_uuid): api=api, cache_key=cache_key if catalog_integration.is_cache_enabled else None, long_term_cache=True, + many=False ) return data.get('course_runs', []) else: