From: Raphael Michel Date: Sun, 22 Dec 2019 16:21:48 +0000 (+0100) Subject: Shortcut in fetch_tan_mechanisms if data is already known X-Git-Tag: v3.0.0~2^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=179049157f4c896c43a179237c04f8a22e1d615d;p=thirdparty%2Fpython-fints.git Shortcut in fetch_tan_mechanisms if data is already known --- diff --git a/fints/client.py b/fints/client.py index 182b6dd..fee94dd 100644 --- a/fints/client.py +++ b/fints/client.py @@ -1121,6 +1121,9 @@ class FinTS3PinTanClient(FinTS3Client): def fetch_tan_mechanisms(self): self.set_tan_mechanism('999') self._ensure_system_id() + if self.get_current_tan_mechanism(): + # We already got a reply through _ensure_system_id + return self.get_current_tan_mechanism() with self._new_dialog(): return self.get_current_tan_mechanism()