Fix feedparser without tags
This commit is contained in:
parent
47bb705502
commit
2fef42bfc2
1 changed files with 8 additions and 7 deletions
|
@ -49,6 +49,7 @@ def parse(obj, raw, stream):
|
||||||
|
|
||||||
# Collect tags
|
# Collect tags
|
||||||
tags = []
|
tags = []
|
||||||
|
if 'tags' in obj.raw:
|
||||||
for tag in obj.raw['tags']:
|
for tag in obj.raw['tags']:
|
||||||
if 'label' in tag:
|
if 'label' in tag:
|
||||||
label = tag['label'].replace(',','-')
|
label = tag['label'].replace(',','-')
|
||||||
|
|
Loading…
Reference in a new issue