mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 07:13:42 +02:00
Ignore 404s on private bugs
This commit is contained in:
parent
e20b1f2d0a
commit
4df998fdd2
1 changed files with 1 additions and 1 deletions
|
|
@ -43,8 +43,8 @@ def __call__(self, match):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue