[PATCH] backports: handle HTTP 404 from ubuntu mainline storage

Hauke Mehrtens <[email protected]>
Newsgroups org.kernel.vger.backports
Message-ID <[email protected]>
Signed-off-by: Hauke Mehrtens <[email protected]>
---
 devel/backports-update-manager | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/devel/backports-update-manager b/devel/backports-update-manager
index 2ef82854..4d63de8c 100755
--- a/devel/backports-update-manager
+++ b/devel/backports-update-manager
@@ -38,7 +38,11 @@ def make_version_tuple(ver):
     return sver
 
 def parse_ubuntu_ppa_page(version, baseurl):
-    html = urlopen(baseurl).read()
+    try:
+       html = urlopen(baseurl).read()
+    except:
+        return None
+
     if b'Build for amd64 failed' in html:
         return None
     pkgs = re.findall(b'href="linux-headers-[^"]*-generic_[^"]*\.deb"', html)
-- 
2.30.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.