1
0
Fork 1
mirror of https://github.com/andrewferrier/email2pdf.git synced 2025-03-18 14:03:00 +00:00

Fix blacklist behaviour - delete URLs in blacklist.

This commit is contained in:
Andrew Ferrier 2015-03-18 16:09:57 +00:00
parent 0d65970ed3
commit 916e5f5661

View file

@ -287,7 +287,8 @@ def remove_invalid_urls(payload):
logger.warning("Could not retrieve img URL " + src + ", replacing with blank.")
del img['src']
else:
logger.debug("Ignoring URL in blacklist " + src)
logger.debug("Removing URL that was found in blacklist " + src)
del img['src']
else:
logger.debug("Ignoring URL " + src)