Closed anatolykazantsev closed 8 years ago
Thanks for reporting. Yes, this case definitely isn't covered. Let me see what we can do.
OK, I've updated develop To check your case again let's do this way:
python setup.py install
Now it's covered with unittests. In case of such page warnings it raises VkPageWarningsError
, you can handle it as except VkAuthError
in your code
Updated in v0.9.2
Tested :-). Works ok. Thanks for the fix.
VK returns error page if user failed many times to enter masked numbers from its phone number during verification process. Because of this get_masked_phone_number() function returns empty tuple on new attempts, but caller code doesn't expect it and produces following error:
Example of page with Incorrect phone numbers error return by VK:
The error message is in
So it seems the code should check the response from VK before calling AuthAPI.require_phone_number() method.