From 2cf950e90171c7c976c883cbb0f9dfe2ea376fe6 Mon Sep 17 00:00:00 2001 From: missytake Date: Wed, 20 Dec 2023 15:34:12 +0100 Subject: [PATCH] echo: fail if configure doesn't work --- chatmaild/src/chatmaild/echo.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chatmaild/src/chatmaild/echo.py b/chatmaild/src/chatmaild/echo.py index e8618cd..367be95 100644 --- a/chatmaild/src/chatmaild/echo.py +++ b/chatmaild/src/chatmaild/echo.py @@ -6,7 +6,6 @@ it will echo back any message that has non-empty text and also supports the /hel import logging import os import sys -from threading import Thread from deltachat_rpc_client import Bot, DeltaChat, EventType, Rpc, events @@ -76,10 +75,7 @@ def main(): config = read_config(sys.argv[1]) password = create_newemail_dict(config).get("password") email = "echo@" + config.mail_domain - configure_thread = Thread( - target=bot.configure, kwargs={"email": email, "password": password} - ) - configure_thread.start() + bot.configure(email, password) bot.run_forever()