mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-21 22:36:34 -04:00
pep8: fix bare except
ruff 'E722'
This commit is contained in:
@@ -47,7 +47,7 @@ class Bug:
|
||||
raw = urllib.request.urlopen(LAUNCHPAD_BUG.format(bug)).read()
|
||||
h1 = html.fromstring(raw).xpath('//h1[@id="edit-title"]')[0]
|
||||
summary = html.tostring(h1, method='text', encoding=str).strip()
|
||||
except:
|
||||
except Exception:
|
||||
summary = 'Private bug'
|
||||
else:
|
||||
summary = json.loads(urllib.request.urlopen(GITHUB_BUG.format(bug)).read())['title']
|
||||
|
||||
Reference in New Issue
Block a user