We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdf06a2 commit 5def2a9Copy full SHA for 5def2a9
1 file changed
fints/client.py
@@ -1158,8 +1158,15 @@ def _new_dialog(self, lazy_init=False):
1158
)
1159
1160
def fetch_tan_mechanisms(self):
1161
- self.set_tan_mechanism('999')
1162
- self._ensure_system_id()
+ if self.system_id and not self.get_current_tan_mechanism():
+ # system_id was persisted and given to the client, but nothing else
1163
+ self.set_tan_mechanism('999')
1164
+ with self._get_dialog(lazy_init=True) as dialog:
1165
+ response = dialog.init()
1166
+ self.process_response_message(dialog, response, internal_send=True)
1167
+ else:
1168
1169
+ self._ensure_system_id()
1170
if self.get_current_tan_mechanism():
1171
# We already got a reply through _ensure_system_id
1172
return self.get_current_tan_mechanism()
0 commit comments