projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2416f42
)
Fix reference to usernames parameter in Client.get_users
author
Harmon
<Harmon758@gmail.com>
Wed, 24 Feb 2021 03:11:00 +0000
(21:11 -0600)
committer
Harmon
<Harmon758@gmail.com>
Wed, 24 Feb 2021 03:11:00 +0000
(21:11 -0600)
tweepy/client.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/client.py
b/tweepy/client.py
index 9e41f7212a61a97949a6e2a27db2006c6115cdd2..abcb4c862be8e09eeb2d7e2204df0f4cbd0a79d5 100644
(file)
--- a/
tweepy/client.py
+++ b/
tweepy/client.py
@@
-167,7
+167,7
@@
class Client:
https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by
https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-by-username-username
"""
- if ids is not None and username is not None:
+ if ids is not None and username
s
is not None:
raise TypeError("Expected IDs or usernames, not both")
route = "/2/users"