From: Raphael Michel Date: Sun, 3 Nov 2024 15:04:33 +0000 (+0100) Subject: Fix system ID handling X-Git-Tag: v4.2.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6c4e5cd89cab9f7b9a41accbbe2f95036770501;p=thirdparty%2Fpython-fints.git Fix system ID handling --- diff --git a/fints/client.py b/fints/client.py index 57d2c4d..aca9606 100644 --- a/fints/client.py +++ b/fints/client.py @@ -1207,7 +1207,7 @@ class FinTS3PinTanClient(FinTS3Client): ) def fetch_tan_mechanisms(self): - if self.system_id and not self.get_current_tan_mechanism(): + if (self.system_id and self.system_id != SYSTEM_ID_UNASSIGNED) and not self.get_current_tan_mechanism(): # system_id was persisted and given to the client, but nothing else self.set_tan_mechanism('999') with self._get_dialog(lazy_init=True) as dialog: