From: Raphael Michel Date: Wed, 11 Sep 2019 14:11:53 +0000 (+0200) Subject: Raise a custom exception for response 9075 X-Git-Tag: v3.0.0~2^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da8d263aac21b8651801753b7db43b1e426f6fc2;p=thirdparty%2Fpython-fints.git Raise a custom exception for response 9075 --- diff --git a/fints/client.py b/fints/client.py index dd9b005..6e80e50 100644 --- a/fints/client.py +++ b/fints/client.py @@ -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. diff --git a/fints/exceptions.py b/fints/exceptions.py index 37bf98c..e817561 100644 --- a/fints/exceptions.py +++ b/fints/exceptions.py @@ -14,6 +14,10 @@ class FinTSClientTemporaryAuthError(FinTSClientError): pass +class FinTSSCARequiredError(FinTSClientError): + pass + + class FinTSDialogError(FinTSError): pass