From bb02d95e9219119ab00f89c3c5580f3dfa71a336 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 13 Aug 2024 16:43:03 +0200 Subject: [PATCH] BUG/MINOR: release-estimator: fix relative scheme in CHANGELOG URL The CHANGELOG URL which is parsed in the HTML now have a relative scheme, which is incompatible with requests. This patch adds an https scheme to the URL. --- admin/release-estimator/release-estimator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/release-estimator/release-estimator.py b/admin/release-estimator/release-estimator.py index bf005df3f..e113bffcb 100755 --- a/admin/release-estimator/release-estimator.py +++ b/admin/release-estimator/release-estimator.py @@ -16,6 +16,7 @@ # from lxml import html +from urllib.parse import urljoin import requests import traceback import smtplib @@ -190,6 +191,7 @@ This is a friendly bot that watches fixes pending for the next haproxy-stable re # parse out the CHANGELOG link CHANGELOG = tree.xpath('//a[contains(@href,"CHANGELOG")]/@href')[0] + CHANGELOG = urljoin("https://", CHANGELOG) last_version = tree.xpath('//td[contains(text(), "last")]/../td/a/text()')[0] first_version = "%s.0" % (version)