Skip to content

Commit

Permalink
Some minor fixes to parsers.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshthecoder committed Dec 12, 2009
1 parent 5a9f517 commit bb9f98c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tweepy/parsers.py
Expand Up @@ -109,6 +109,7 @@ def parse_users(obj, api):

users = []
for item in item_list:
if item is None: break # sometimes an empty list with a null in it
users.append(parse_user(item, api))
return users

Expand Down Expand Up @@ -237,6 +238,7 @@ def parse_search_results(obj, api):
def parse_list(obj, api):

lst = models['list']()
lst._api = api
for k,v in obj.items():
if k == 'user':
setattr(lst, k, parse_user(v, api))
Expand Down

0 comments on commit bb9f98c

Please sign in to comment.