We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8e60e commit 172bb1aCopy full SHA for 172bb1a
1 file changed
firstrade/account.py
@@ -261,6 +261,9 @@ def _handle_mfa(self):
261
"t_token": self.t_token,
262
}
263
response = self.session.post(urls.verify_pin(), data=data)
264
+ else:
265
+ raise LoginResponseError("MFA required but no valid MFA method "
266
+ "was provided (pin, email/phone, or mfa_secret).")
267
self.login_json = response.json()
268
if self.login_json["error"] == "":
269
if self.pin or self.mfa_secret is not None:
0 commit comments