From: Raphael Michel Date: Mon, 15 Jul 2019 15:52:40 +0000 (+0200) Subject: Gracefully fail on error 9010 X-Git-Tag: v2.2.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f60904d8e8f82aafd20f6f69dbefdac21aaec487;p=thirdparty%2Fpython-fints.git Gracefully fail on error 9010 --- diff --git a/fints/client.py b/fints/client.py index 115b6fe..2cf49fa 100644 --- a/fints/client.py +++ b/fints/client.py @@ -1224,6 +1224,10 @@ class FinTS3PinTanClient(FinTS3Client): # Fall back to onestep self.set_tan_mechanism('999') + if response.code == '9010': + raise FinTSClientError("Error during dialog initialization, could not fetch BPD. Please check that you " + "passed the correct bank identifier to the HBCI URL of the correct bank.") + if (not dialog.open and response.code.startswith('9')) or response.code in ('9340', '9910', '9930', '9931', '9942'): # Assume all 9xxx errors in a not-yet-open dialog refer to the PIN or authentication # During a dialog also listen for the following codes which may explicitly indicate an