Skip to content

Commit e716410

Browse files
committed
Merge pull request bear#138 from shichao-an/master
Fix bug of GetListMembers when specifying `owner_screen_name`
2 parents bcd97ab + a4b0364 commit e716410

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

twitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4717,7 +4717,7 @@ def GetListMembers(self, list_id, slug, owner_id=None, owner_screen_name=None, c
47174717
if list_id is None:
47184718
if slug is None:
47194719
raise TwitterError('list_id or slug required')
4720-
if owner_id is None and owner_screen_name:
4720+
if owner_id is None and not owner_screen_name:
47214721
raise TwitterError('if list_id is not given you have to include an owner to help identify the proper list')
47224722

47234723
if owner_id:

0 commit comments

Comments
 (0)