|
@@ -340,7 +340,7 @@ class Attempt:
|
|
|
log_link = re.sub('job_[^/]+', self.id, log_link)
|
|
log_link = re.sub('job_[^/]+', self.id, log_link)
|
|
|
root = Resource(get_log_client(log_link), urlparse.urlsplit(log_link)[2], urlencode=False)
|
|
root = Resource(get_log_client(log_link), urlparse.urlsplit(log_link)[2], urlencode=False)
|
|
|
response = root.get(link, params=params)
|
|
response = root.get(link, params=params)
|
|
|
- log = html.fromstring(response).xpath('/html/body/table/tbody/tr/td[2]')[0].text_content()
|
|
|
|
|
|
|
+ log = html.fromstring(response, parser=html.HTMLParser()).xpath('/html/body/table/tbody/tr/td[2]')[0].text_content()
|
|
|
except Exception, e:
|
|
except Exception, e:
|
|
|
log = _('Failed to retrieve log: %s' % e)
|
|
log = _('Failed to retrieve log: %s' % e)
|
|
|
try:
|
|
try:
|