Skip to content
Commit 03172003 authored by Damien Mat Jedrzejewski's avatar Damien Mat Jedrzejewski Committed by hydrargyrum
Browse files

[fortuneo] Avoid handle_sms() after an ActionNeeded

An action needed can happen during the handle_sms,
but self.sms_form will have been re-initiated to None while the user resolve it,
and the OTP will already been submitted and accepted by the server.
So, to avoid running handle_sms a second time, we check if self.sms_form is present;
when not, we fall back to init_login, where the SCA won't be triggered.
This avoids a "'NoneType' object does not support item assignment"
error.
parent b7bc2914
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