From 99ccfa6c1feb0b98b3d8087acc6ad2f0344fdeb2 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Mon, 21 Jan 2013 10:19:54 -0800 Subject: [PATCH] Fix bug when parsing Lists. --- tweepy/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tweepy/models.py b/tweepy/models.py index 8275505..fe87adb 100644 --- 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 -- 2.25.1