Commit d4876322 authored by Florian Duguet's avatar Florian Duguet Committed by ntome

[orange] handle wrongpass when get 403

Closes: 38890@sibi
parent 332d59d8
......@@ -75,6 +75,9 @@ class OrangeBillBrowser(LoginBrowser):
except ClientError as error:
if error.response.status_code == 401:
raise BrowserIncorrectPassword()
if error.response.status_code == 403:
# occur when user try several times with a bad password, orange block his account for a short time
raise BrowserIncorrectPassword(error.response.json())
raise
def get_nb_remaining_free_sms(self):
......
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