Skip to content

Commit

Permalink
update logger
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorhobenshield committed Jun 29, 2023
1 parent 9c7b045 commit 177ceef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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.3"
__version__ = "0.10.4"
__author__ = "Trevor Hobenshield"
__license__ = "MIT"
3 changes: 2 additions & 1 deletion twitter/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ def _validate_session(self, *args, **kwargs):
return _session

# no session, credentials, or cookies provided. use guest session.
self.logger.warning(f'{RED}This is a guest session, some endpoints cannot be accessed.{RESET}\n')
if self.debug:
self.logger.warning(f'{RED}This is a guest session, some endpoints cannot be accessed.{RESET}\n')
self.guest = True
return session

0 comments on commit 177ceef

Please sign in to comment.