]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Fix system ID handling
authorRaphael Michel <michel@rami.io>
Sun, 3 Nov 2024 15:04:33 +0000 (16:04 +0100)
committerRaphael Michel <michel@rami.io>
Sun, 3 Nov 2024 15:04:33 +0000 (16:04 +0100)
fints/client.py

index 57d2c4d56a09fa4c6687c6aafe2af298c37e8564..aca9606866a77963c1735142393b0d0e394d3534 100644 (file)
@@ -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: