Verified Commit f77f7d42 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

In debianqa plugin, use URLError instead of HTTPError to catch more errors

parent 520bce88
...@@ -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.HTTPError, timeout) as e: except (urllib2.URLError, timeout) as e:
log.error('Failed to contact tracker: {}'.format(e)) log.error('Failed to contact tracker: {}'.format(e))
return return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment