fix urllib.error.HTTPError print
This commit is contained in:
parent
41e984e1f0
commit
7ce2bfb97f
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user