Skip to content

Commit

Permalink
remove guest-session fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorhobenshield committed Jul 5, 2023
1 parent 2f17fd7 commit 6847a52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion twitter/__version__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = "twitter-api-client"
__description__ = "Implementation of Twitter's v1, v2, and GraphQL APIs."
__version__ = "0.10.10"
__version__ = "0.10.11"
__author__ = "Trevor Hobenshield"
__license__ = "MIT"
7 changes: 2 additions & 5 deletions twitter/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ def login(email: str, username: str, password: str, **kwargs) -> Client:
follow_redirects=True
)
client = execute_login_flow(client, **kwargs)
if kwargs.get('debug'):
if not client or client.cookies.get('flow_errors') == 'true':
print(f'[{RED}error{RESET}] {BOLD}{username}{RESET} login failed')
else:
print(f'[{GREEN}success{RESET}] {BOLD}{username}{RESET} login success')
if not client or client.cookies.get('flow_errors') == 'true':
raise Exception(f'[{RED}error{RESET}] {BOLD}{username}{RESET} login failed')
return client

0 comments on commit 6847a52

Please sign in to comment.