projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a9f517
)
Some minor fixes to parsers.
author
Joshua Roesslein
<jroesslein@gmail.com>
Sat, 12 Dec 2009 21:21:19 +0000
(15:21 -0600)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Sat, 12 Dec 2009 21:21:19 +0000
(15:21 -0600)
tweepy/parsers.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/parsers.py
b/tweepy/parsers.py
index 0ebaf199526cec9c8a42188a6dcb8a8a60eacc60..0ea115e042a66aa0d08c2b84ec6ab6c20b650dfc 100644
(file)
--- a/
tweepy/parsers.py
+++ b/
tweepy/parsers.py
@@
-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
@@
-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))