From a3b62b9743a4bb5c94ec1ea6e9f55ffb3147cb53 Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 9 Apr 2024 01:37:38 +0000 Subject: [PATCH] fix(deltachat-rpc-client): construct Thread with `target` keyword argument `run` argument does not exist. Also add `daemon=True`. --- deltachat-rpc-client/src/deltachat_rpc_client/_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py b/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py index 2a82f11b3c..8849e72ea0 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/_utils.py @@ -104,7 +104,11 @@ def _run_cli( if not client.is_configured(): assert args.email, "Account is not configured and email must be provided" assert args.password, "Account is not configured and password must be provided" - configure_thread = Thread(run=client.configure, kwargs={"email": args.email, "password": args.password}) + configure_thread = Thread( + target=client.configure, + daemon=True, + kwargs={"email": args.email, "password": args.password}, + ) configure_thread.start() client.run_forever()