Allow <img> tags without src attr in epub to update

This commit is contained in:
Jim Miller 2020-11-23 14:26:34 -06:00
parent b72ce6ecf3
commit 285459758d

View file

@ -129,7 +129,7 @@ def get_update_data(inputio,
newsrc=''
longdesc=''
## skip <img src="data:image..."
if not img['src'].startswith('data:image'):
if 'src' in img and not img['src'].startswith('data:image'):
try:
newsrc=get_path_part(href)+img['src']
# remove all .. and the path part above it, if present.