Skip to content

Commit 9fc3847

Browse files
committed
feat: raise no account error when bad login
1 parent 07cef03 commit 9fc3847

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roborock/web_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ async def code_login_v4(
359359
raise RoborockInvalidUserAgreement(
360360
"User agreement must be accepted again - or you are attempting to use the Mi Home app account."
361361
)
362+
if response_code == 3039:
363+
raise RoborockAccountDoesNotExist(
364+
"This code does not exists - please ensure that you selected the right region and email."
365+
)
362366
raise RoborockException(f"{login_response.get('msg')} - response code: {response_code}")
363367
user_data = login_response.get("data")
364368
if not isinstance(user_data, dict):

0 commit comments

Comments
 (0)