Skip to content

Commit 3fde46f

Browse files
committed
throttle error
1 parent 4126162 commit 3fde46f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

booker.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def Login(session: requests.Session):
8787
}
8888
)
8989
assert response.ok
90-
assert 'vg-user-access-token' in session.cookies
90+
if 'vg-user-access-token' not in session.cookies:
91+
raise RuntimeError('Login unsuccessful. Suspect throttling. '
92+
'Wait a few minutes and try again.')
9193
print('SUCCESS')
9294

9395

0 commit comments

Comments
 (0)