From e76fee152150af16be78c23cef247a48779d5a01 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Thu, 25 Apr 2024 02:25:00 +0500 Subject: [PATCH] fix: resolved key error (#34608) --- openedx/core/djangoapps/notifications/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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