From cbe8b5c3736cb5d6fd2f81dd8177fc3802d59921 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Fri, 21 Jul 2023 09:40:08 +0200 Subject: [PATCH] fix: skip empty results in dispatch --- interface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface.py b/interface.py index e89333b..74598a6 100755 --- a/interface.py +++ b/interface.py @@ -141,6 +141,9 @@ def save_in_dispatch_queue(persons, message): for p in persons: + if not p: + continue + # this secret will be needed to confirm the message as dispatched # dispatch_secret = secrets.token_urlsafe(32)