1
0
Fork 0

fix title None error

This commit is contained in:
Nick Sweeting 2019-03-22 23:10:11 -04:00
parent c28c0d0e71
commit fb8d4e9369

View file

@ -40,7 +40,7 @@ def validate_links(links):
raise SystemExit(1)
for link in links:
link['title'] = unescape(link['title'].strip()) if link['title'].strip() else None
link['title'] = unescape(link['title'].strip()) if link['title'] else None
check_link_structure(link)
return list(links)