projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edb63d2
)
Fix bug when parsing Lists.
author
Joshua Roesslein
<jroesslein@gmail.com>
Mon, 21 Jan 2013 18:19:54 +0000
(10:19 -0800)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Mon, 21 Jan 2013 18:19:54 +0000
(10:19 -0800)
tweepy/models.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/models.py
b/tweepy/models.py
index 827550573c5e856a47b050918a193760a268be06..fe87adb0779d56d2cf20878d1b649f539912c2d7 100644
(file)
--- a/
tweepy/models.py
+++ b/
tweepy/models.py
@@
-257,7
+257,9
@@
class List(Model):
@classmethod
def parse_list(cls, api, json_list, result_set=None):
results = ResultSet()
- for obj in json_list['lists']:
+ if isinstance(json_list, dict):
+ json_list = json_list['lists']
+ for obj in json_list:
results.append(cls.parse(api, obj))
return results