Merge branch 'release-1.1' into develop

This commit is contained in:
Stein Magnus Jodal 2015-10-26 23:26:03 +01:00
commit 7bbf45312a

View File

@ -29,7 +29,11 @@ def download(session, uri, timeout=1.0, chunk_size=4096):
'%.3fs', uri, timeout)
return None
except requests.exceptions.InvalidSchema:
logger.warning('%s has an unsupported schema.', uri)
logger.warning('Download of %r failed due to unsupported schema', uri)
return None
except requests.exceptions.RequestException as exc:
logger.warning('Download of %r failed: %s', uri, exc)
logger.debug('Download exception details', exc_info=True)
return None
content = []