From 5321bbe5519c1b0034c9453eb9caebcde9726be1 Mon Sep 17 00:00:00 2001 From: Carina Antunes <carina.oliveira.antunes@cern.ch> Date: Fri, 5 Nov 2021 09:58:51 +0100 Subject: [PATCH] Revert "fixed empty category check" This reverts commit ce2bc828eeb80567b19a8b1d48cf7bdb9637bb11 --- notifications_routing/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications_routing/router.py b/notifications_routing/router.py index c8a69f2..49a1e52 100644 --- a/notifications_routing/router.py +++ b/notifications_routing/router.py @@ -69,7 +69,7 @@ class Router(megabus.Listener): category_name = ( channel[str(InputMessageKeys.CATEGORY)][str(InputMessageKeys.NAME)] - if channel.get(str(InputMessageKeys.CATEGORY)) in channel + if str(InputMessageKeys.CATEGORY) in channel else None ) -- GitLab