fix(deltachat-rpc-client): construct Thread with target keyword argument

`run` argument does not exist.

Also add `daemon=True`.
This commit is contained in:
link2xt
2024-04-09 01:37:38 +00:00
parent 9aa4c0e56b
commit a3b62b9743

View File

@@ -104,7 +104,11 @@ def _run_cli(
if not client.is_configured(): if not client.is_configured():
assert args.email, "Account is not configured and email must be provided" assert args.email, "Account is not configured and email must be provided"
assert args.password, "Account is not configured and password 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() configure_thread.start()
client.run_forever() client.run_forever()