Merge "Be tolerant to missing mail archive list page"
This commit is contained in:
commit
012c786f12
@ -30082,7 +30082,6 @@
|
||||
"https://lists.opnfv.org/pipermail/fds-dev/",
|
||||
"https://lists.opnfv.org/pipermail/infra-wg/",
|
||||
"https://lists.opnfv.org/pipermail/mano-wg/",
|
||||
"https://lists.opnfv.org/pipermail/odl-wg/",
|
||||
"https://lists.opnfv.org/pipermail/openstack-dev/",
|
||||
"https://lists.opnfv.org/pipermail/opnfv-enduser-advisory-group/",
|
||||
"https://lists.opnfv.org/pipermail/opnfv-project-leads/",
|
||||
|
@ -54,6 +54,10 @@ TRAILING_RECORD = ('From ishakhat at mirantis.com Tue Sep 17 07:30:43 2013\n'
|
||||
|
||||
def _get_mail_archive_links(uri):
|
||||
content = utils.read_uri(uri)
|
||||
if not content:
|
||||
LOG.warning('Mail archive list is not found at %s', uri)
|
||||
return []
|
||||
|
||||
links = set(re.findall(r'\shref\s*=\s*[\'"]([^\'"]*\.txt\.gz)', content,
|
||||
flags=re.IGNORECASE))
|
||||
return [parse.urljoin(uri, link) for link in links]
|
||||
|
Loading…
x
Reference in New Issue
Block a user