Commit 092d558d authored by Célande Adrien's avatar Célande Adrien Committed by hydrargyrum
Browse files

[caissedepargne] CloudCard not supported for transfer

The CloudCard uses biometric recognition to authenticate the user.
So it is not Supported.
Otherwise, if an exception is not raised,
it generates a 400 error with the code 102 and the message
'Unauthorized to execute fallback'
parent e5d1c90a
......@@ -39,7 +39,8 @@
from weboob.capabilities.profile import Profile
from weboob.browser.exceptions import BrowserHTTPNotFound, ClientError, ServerError
from weboob.exceptions import (
BrowserIncorrectPassword, BrowserUnavailable, BrowserHTTPError, BrowserPasswordExpired, ActionNeeded
BrowserIncorrectPassword, BrowserUnavailable, BrowserHTTPError, BrowserPasswordExpired,
ActionNeeded, AuthMethodNotImplemented,
)
from weboob.tools.capabilities.bank.transactions import (
sorted_transactions, FrenchTransaction, keep_only_card_transactions,
......@@ -1024,7 +1025,10 @@ def otp_update_state(self):
def otp_choose_sms(self):
key = next(iter(self.otp_validation))
if self.otp_validation[key][0]['type'] == 'SMS':
auth_type = self.otp_validation[key][0]['type']
if auth_type == 'CLOUDCARD':
raise AuthMethodNotImplemented()
if auth_type == 'SMS':
return
self.location(self.otp_url, json={'fallback': {}})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment