]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Set system_id before closing dialog
authorRaphael Michel <mail@raphaelmichel.de>
Wed, 9 Oct 2019 10:05:11 +0000 (12:05 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Wed, 9 Oct 2019 10:05:11 +0000 (12:05 +0200)
fints/client.py

index 541ba5c6b339bf017fed92e5a61844856a8238be..310a584279dc0c6672aa73a7f33e2283dac47262 100644 (file)
@@ -1131,11 +1131,10 @@ class FinTS3PinTanClient(FinTS3Client):
             response = dialog.init(
                 HKSYN3(SynchronizationMode.NEW_SYSTEM_ID),
             )
-
-        seg = response.find_segment_first(HISYN4)
-        if not seg:
-            raise ValueError('Could not find system_id')
-        self.system_id = seg.system_id
+            seg = response.find_segment_first(HISYN4)
+            if not seg:
+                raise ValueError('Could not find system_id')
+            self.system_id = seg.system_id
 
     def _set_data_v1(self, data):
         super()._set_data_v1(data)