From 43730a2d8ad8f7255413f5314c278e31acee97fb Mon Sep 17 00:00:00 2001 From: missytake Date: Sun, 26 Sep 2021 22:01:27 +0200 Subject: [PATCH] python-bindings: set timeout for account configure I need this for a script - it's not very important, it would just be nice to set a timeout if the account isn't configurable. --- python/src/deltachat/tracker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/deltachat/tracker.py b/python/src/deltachat/tracker.py index 40834ee2d..aa5580b86 100644 --- a/python/src/deltachat/tracker.py +++ b/python/src/deltachat/tracker.py @@ -90,11 +90,11 @@ class ConfigureTracker: if data1 is None or evdata == data1: break - def wait_finish(self): + def wait_finish(self, timeout=None): """ wait until configure is completed. Raise Exception if Configure failed """ - if not self._configure_events.get(): + if not self._configure_events.get(timeout=timeout): content = "\n".join(map(str, self._ffi_events)) raise ConfigureFailed(content)