Handle case of missing publisher (again)

git-svn-id: http://comictagger.googlecode.com/svn/trunk@24 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2012-11-09 23:26:06 +00:00
parent c691f62c0d
commit 4e7200c0ef

View File

@ -157,10 +157,15 @@ class ComicVineCacher:
cur = con.cursor()
timestamp = datetime.datetime.now()
if cv_volume_record['publisher'] is None:
pub_name = ""
else:
pub_name = cv_volume_record['publisher']['name']
data = {
"name": cv_volume_record['name'],
"publisher": cv_volume_record['publisher']['name'],
"publisher": pub_name,
"count_of_issues": cv_volume_record['count_of_issues'],
"timestamp": timestamp
}