From 76077c36625130ee0f5dd9d88abd753a2be56a01 Mon Sep 17 00:00:00 2001 From: Mrunal Hirve Date: Fri, 7 Nov 2025 18:09:14 -0800 Subject: [PATCH] Fix Nonetype --- .../notifications/agent_notification.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py b/libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py index 4963195e..8a5f94de 100644 --- a/libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py +++ b/libraries/microsoft-agents-a365-notifications/microsoft_agents_a365/notifications/agent_notification.py @@ -61,10 +61,8 @@ def on_agent_notification( def route_selector(context: TurnContext) -> bool: ch = context.activity.channel_id - received_channel = ch.channel if ch else "" - received_subchannel = ch.sub_channel if ch else "" - received_channel = received_channel.lower() - received_subchannel = received_subchannel.lower() + received_channel = (ch.channel if ch else "").lower() + received_subchannel = (ch.sub_channel if ch and ch.sub_channel else "").lower() if received_channel != registered_channel: return False if registered_subchannel == "*":