fix urllib.error.HTTPError print

This commit is contained in:
Maks Snegov 2014-07-20 21:42:13 +04:00
parent 41e984e1f0
commit 7ce2bfb97f

View File

@ -172,7 +172,7 @@ def process_url(url):
page = embed_pictures(page, parser.images, base_url=url)
page = embed_css(page, parser.css, base_url=url)
except urllib.error.HTTPError as e:
print('Error with URL "%s": %s' % (url,e))
print(e)
return False
write_file(page, parser.title, comment=url)