mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Removed old code to deal with invalid users
This commit is contained in:
parent
788811bf6c
commit
465b550c30
@ -405,9 +405,9 @@ class Session(base.baseSession):
|
||||
""" Returns an user object associated with an ID.
|
||||
id str: User identifier, provided by Twitter.
|
||||
returns a tweepy user object."""
|
||||
# if hasattr(id, "id_str"):
|
||||
# log.error("Called get_user function by passing a full user id as a parameter.")
|
||||
# id = id.id_str
|
||||
if hasattr(id, "id_str"):
|
||||
log.error("Called get_user function by passing a full user id as a parameter.")
|
||||
id = id.id_str
|
||||
# Check if the user has been added to the list of deleted users previously.
|
||||
if id in self.deleted_users:
|
||||
log.debug("Returning user {} from the list of deleted users.".format(id))
|
||||
|
Loading…
Reference in New Issue
Block a user