Skip to content

Commit ea556a5

Browse files
kaxappython273
authored andcommitted
fix "Unknown auth error" when account is blocked (#106)
1 parent 48c2da2 commit ea556a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vk_api/vk_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ def api_login(self):
402402
'response_type': 'token'
403403
}
404404
)
405+
406+
if 'act=blocked' in response.url:
407+
raise AccountBlocked('Account is blocked')
405408

406409
if 'access_token' not in response.url:
407410
url = search_re(RE_TOKEN_URL, response.text)

0 commit comments

Comments
 (0)