We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be897f0 commit 7a8199eCopy full SHA for 7a8199e
cms/djangoapps/contentstore/tasks.py
@@ -455,8 +455,8 @@ def sync_discussion_settings(course_key, user):
455
456
if (
457
ENABLE_NEW_STRUCTURE_DISCUSSIONS.is_enabled()
458
- and not course.discussions_settings['provider_type'] == Provider.OPEN_EDX
459
- and not course.discussions_settings['provider'] == Provider.OPEN_EDX
+ and not course.discussions_settings.get('provider_type') == Provider.OPEN_EDX
+ and not course.discussions_settings.get('provider') == Provider.OPEN_EDX
460
):
461
LOGGER.info(f"New structure is enabled, also updating {course_key} to use new provider")
462
course.discussions_settings['enable_graded_units'] = False
0 commit comments