We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ee4afa commit 6e336e2Copy full SHA for 6e336e2
1 file changed
cms/djangoapps/contentstore/tasks.py
@@ -473,8 +473,8 @@ def sync_discussion_settings(course_key, user):
473
474
if (
475
ENABLE_NEW_STRUCTURE_DISCUSSIONS.is_enabled()
476
- and not course.discussions_settings['provider_type'] == Provider.OPEN_EDX
477
- and not course.discussions_settings['provider'] == Provider.OPEN_EDX
+ and not course.discussions_settings.get('provider_type', None) == Provider.OPEN_EDX
+ and not course.discussions_settings.get('provider', None) == Provider.OPEN_EDX
478
):
479
LOGGER.info(f"New structure is enabled, also updating {course_key} to use new provider")
480
course.discussions_settings['enable_graded_units'] = False
0 commit comments