mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore 404s on private bugs
This commit is contained in:
parent
e20b1f2d0a
commit
4df998fdd2
@ -43,8 +43,8 @@ class Bug:
|
|||||||
self.seen.add(bug)
|
self.seen.add(bug)
|
||||||
|
|
||||||
if int(bug) > 100000: # Launchpad bug
|
if int(bug) > 100000: # Launchpad bug
|
||||||
raw = urllib.request.urlopen(LAUNCHPAD_BUG % bug).read()
|
|
||||||
try:
|
try:
|
||||||
|
raw = urllib.request.urlopen(LAUNCHPAD_BUG % bug).read()
|
||||||
h1 = html.fromstring(raw).xpath('//h1[@id="edit-title"]')[0]
|
h1 = html.fromstring(raw).xpath('//h1[@id="edit-title"]')[0]
|
||||||
summary = html.tostring(h1, method='text', encoding=str).strip()
|
summary = html.tostring(h1, method='text', encoding=str).strip()
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user