"Let's download things once only, instead of 3 times."

bzr-revno: 2559
This commit is contained in:
raoul@snyman.info 2015-10-15 00:16:00 +02:00 committed by Raoul Snyman
commit 67b2aeb5ad

View File

@ -404,6 +404,7 @@ def get_web_page(url, header=None, update_openlp=False):
try:
page = urllib.request.urlopen(req, timeout=CONNECTION_TIMEOUT)
log.debug('Downloaded page {}'.format(page.geturl()))
break
except urllib.error.URLError as err:
log.exception('URLError on {}'.format(url))
log.exception('URLError: {}'.format(err.reason))