Resolve image caused uncaught exception.

Implement Webmoshers ( https://github.com/webmosher ) fix for issue #2485 per https://github.com/rembo10/headphones/issues/2485#issuecomment-180047097
This commit is contained in:
Get your own 'tots. Geez!
2016-02-16 14:14:41 -07:00
parent 583c71eca3
commit 6bc3adbd33

View File

@@ -116,7 +116,7 @@ class Cache(object):
return None
for image in images:
if image['size'] == 'medium':
if image['size'] == 'medium' and '#text' in image:
thumb_url = image['#text']
break