forked from openlp/openlp
"Let's download things once only, instead of 3 times."
bzr-revno: 2559
This commit is contained in:
commit
67b2aeb5ad
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user