From a3b2e0e22c26976702d91d92c38565564e97b5eb Mon Sep 17 00:00:00 2001 From: Ashish D'Souza Date: Wed, 22 Nov 2023 18:56:31 -0600 Subject: [PATCH] Fixed AttributeError in NtfyRouter #5 Squashed commit of the following: commit 49daddff83a18e0eba4ab04899937f8962df2379 Author: Ashish D'Souza Date: Wed Nov 22 18:55:58 2023 -0600 Fixed wrong variable name --- ntfy_router/src/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntfy_router/src/router.py b/ntfy_router/src/router.py index 133ea5c..5c969b8 100644 --- a/ntfy_router/src/router.py +++ b/ntfy_router/src/router.py @@ -47,7 +47,7 @@ class NtfyRouter: if topic in self._formatters['notification']: notification_args = {notification_arg: self._formatters['notification'][topic][notification_arg](topic=topic, title=title, message=message) for notification_arg in self._formatters['notification'][topic]} self._rabbitmq_publisher.send_notification(user='ashish', priority='high', **notification_args) - elif topic in self._call_topics: + elif topic in self._formatters['call']: call_args = {call_arg: self._formatters['call'][topic][call_arg](topic=topic, title=title, message=message) for call_arg in self._formatters['call'][topic]} self._rabbitmq_publisher.send_call(user='ashish', **call_args)