]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Raise a custom exception for response 9075
authorRaphael Michel <mail@raphaelmichel.de>
Wed, 11 Sep 2019 14:11:53 +0000 (16:11 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Wed, 11 Sep 2019 14:11:53 +0000 (16:11 +0200)
fints/client.py
fints/exceptions.py

index dd9b005cee866f458917a8f8a2562965d95af9af..6e80e50d7424028e50d272276e397236e79cd231 100644 (file)
@@ -1256,6 +1256,9 @@ class FinTS3PinTanClient(FinTS3Client):
                 self.pin.block()
             raise FinTSClientTemporaryAuthError("Account is temporarily locked.")
 
+        if response.code == '9075':
+            raise FinTSSCARequiredError("This operation requires strong customer authentication.")
+
     def get_tan_mechanisms(self):
         """
         Get the available TAN mechanisms.
index 37bf98cee203c165ddb0bc4d14bd47b136a7a7c4..e8175619688d7d6de4637b5772218acd3bb50dfa 100644 (file)
@@ -14,6 +14,10 @@ class FinTSClientTemporaryAuthError(FinTSClientError):
     pass
 
 
+class FinTSSCARequiredError(FinTSClientError):
+    pass
+
+
 class FinTSDialogError(FinTSError):
     pass