diff --git a/openedx/core/djangoapps/notifications/handlers.py b/openedx/core/djangoapps/notifications/handlers.py index ec56558cc5..6d7e7a7714 100644 --- a/openedx/core/djangoapps/notifications/handlers.py +++ b/openedx/core/djangoapps/notifications/handlers.py @@ -110,7 +110,7 @@ def generate_course_notifications(signal, sender, course_notification_data, meta """ if ( course_notification_data.notification_type == 'ora_staff_notification' - and not ENABLE_ORA_STAFF_NOTIFICATION.is_enabled(course_notification_data['course_key']) + and not ENABLE_ORA_STAFF_NOTIFICATION.is_enabled(course_notification_data.course_key) ): return