Skip to content

Commit c4fdff3

Browse files
adamakalshchikovpython273
authored andcommitted
Update vk_api.py
Rmvd check for 'l' cookie
1 parent 2bc9704 commit c4fdff3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vk_api/vk_api.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,8 @@ def _api_login(self):
441441
if not self._sid:
442442
raise AuthError('API auth error (no remixsid)')
443443

444-
for cookie_name in ['p', 'l']:
445-
if not self.http.cookies.get(cookie_name, domain='.login.vk.com'):
446-
raise AuthError('API auth error (no login cookies)')
444+
if not self.http.cookies.get('p', domain='.login.vk.com'):
445+
raise AuthError('API auth error (no login cookies)')
447446

448447
response = self.http.get(
449448
'https://oauth.vk.com/authorize',

0 commit comments

Comments
 (0)