From c8d7f5ec114cc0bfe2a38bae4b43fbcbbf0d0dd0 Mon Sep 17 00:00:00 2001 From: Ahtisham Shahid Date: Mon, 9 Dec 2024 16:41:21 +0500 Subject: [PATCH] fix: resolved linter errors --- openedx/core/djangoapps/notifications/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/notifications/utils.py b/openedx/core/djangoapps/notifications/utils.py index 5adc40ee5e13..8048672c7258 100644 --- a/openedx/core/djangoapps/notifications/utils.py +++ b/openedx/core/djangoapps/notifications/utils.py @@ -194,7 +194,7 @@ def update_notification_fields( if field in source_config: target_config[field] |= source_config[field] if "email_cadence" in source_config: - if type(target_config["email_cadence"]) == str: + if isinstance(target_config["email_cadence"], str): target_config["email_cadence"] = set() target_config["email_cadence"].add(source_config["email_cadence"])