pep8: fix bare except

ruff 'E722'
This commit is contained in:
un-pogaz
2025-07-16 08:55:16 +02:00
parent 0cac76f515
commit 730ac72ee8
354 changed files with 1111 additions and 1111 deletions
+1 -1
View File
@@ -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']