From 4df998fdd26b04718a658f5cb552d1f9536b90e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 18 Jun 2018 13:24:33 +0530 Subject: [PATCH] Ignore 404s on private bugs --- setup/git_pre_commit_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/git_pre_commit_hook.py b/setup/git_pre_commit_hook.py index aa308215ae..cdcfe1f633 100755 --- a/setup/git_pre_commit_hook.py +++ b/setup/git_pre_commit_hook.py @@ -43,8 +43,8 @@ class Bug: self.seen.add(bug) if int(bug) > 100000: # Launchpad bug - raw = urllib.request.urlopen(LAUNCHPAD_BUG % bug).read() try: + raw = urllib.request.urlopen(LAUNCHPAD_BUG % bug).read() h1 = html.fromstring(raw).xpath('//h1[@id="edit-title"]')[0] summary = html.tostring(h1, method='text', encoding=str).strip() except: