diff --git a/openedx/core/djangoapps/bookmarks/services.py b/openedx/core/djangoapps/bookmarks/services.py index 6ef23df226..5bca61e64c 100644 --- a/openedx/core/djangoapps/bookmarks/services.py +++ b/openedx/core/djangoapps/bookmarks/services.py @@ -41,8 +41,9 @@ class BookmarksService(object): course_key (CourseKey): course_key of the course whose bookmarks cache should be returned. fetch (Bool): if the bookmarks should be fetched and cached if they already aren't. """ - if hasattr(modulestore(), 'fill_in_run'): - course_key = modulestore().fill_in_run(course_key) + store = modulestore() + if hasattr(store, 'fill_in_run'): + course_key = store.fill_in_run(course_key) if course_key.run is None: return [] cache_key = CACHE_KEY_TEMPLATE.format(self._user.id, course_key)