@@ -280,7 +280,7 @@ def job_attempt_logs_json(request, job, attempt_index=0, name='syslog', offset=0
debug_info = ''
try:
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:
log = _('Failed to retrieve log: %s' % e)
@@ -340,7 +340,7 @@ class Attempt:
log_link = re.sub('job_[^/]+', self.id, log_link)
root = Resource(get_log_client(log_link), urlparse.urlsplit(log_link)[2], urlencode=False)