From 4c8777f31a6a4897ac828513763179f099a0822d Mon Sep 17 00:00:00 2001 From: FengYu Date: Thu, 13 Nov 2014 19:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- getComic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getComic.py b/getComic.py index 7cc250f..4bb8254 100755 --- a/getComic.py +++ b/getComic.py @@ -75,7 +75,7 @@ def getContent(id): sortedContentList = [] for i in range(count + 1): for item in contentJson: - if isinstance(contentJson[item], dict) and contentJson[item]['seq'] == i: + if isinstance(contentJson[item], dict) and contentJson[item].get('seq') == i: sortedContentList.append({item: contentJson[item]}) break return (comicName, comicIntrd, count, sortedContentList)