Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
f77f7d42
Verified
Commit
f77f7d42
authored
Mar 07, 2020
by
Baptiste Beauplat
Browse files
In debianqa plugin, use URLError instead of HTTPError to catch more errors
parent
520bce88
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/plugins/debianqa.py
View file @
f77f7d42
...
@@ -61,7 +61,7 @@ class DebianPlugin(BasePlugin):
...
@@ -61,7 +61,7 @@ class DebianPlugin(BasePlugin):
try
:
try
:
self
.
qa_page
=
urllib2
.
urlopen
(
'https://tracker.debian.org/%s'
%
self
.
qa_page
=
urllib2
.
urlopen
(
'https://tracker.debian.org/%s'
%
self
.
changes
[
'Source'
])
self
.
changes
[
'Source'
])
except
(
urllib2
.
HTTP
Error
,
timeout
)
as
e
:
except
(
urllib2
.
URL
Error
,
timeout
)
as
e
:
log
.
error
(
'Failed to contact tracker: {}'
.
format
(
e
))
log
.
error
(
'Failed to contact tracker: {}'
.
format
(
e
))
return
return
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment