diff options
author | Brian May <brian@linuxpenguins.xyz> | 2018-06-18 17:11:31 +1000 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2018-07-13 15:15:20 +1000 |
commit | cc04ebb4f6ebbf80080b7990d710a55fd55a19a2 (patch) | |
tree | ea5ffabe533be6124b9c30bc82af3e23d08f10dc /bin/contact-maintainers | |
parent | 9889b3ebf70085d28f84371a931adcced2ff19fd (diff) |
Update python exception syntax for Python 3.6 compatibility
Diffstat (limited to 'bin/contact-maintainers')
-rwxr-xr-x | bin/contact-maintainers | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/contact-maintainers b/bin/contact-maintainers index e04f172bfa..feb9148024 100755 --- a/bin/contact-maintainers +++ b/bin/contact-maintainers @@ -43,7 +43,7 @@ else: try: graph.parse('https://packages.qa.debian.org/{}/{}.rdf' .format(re.match('((?:lib)?.)', pkg).group(1), pkg)) - except urllib2.HTTPError, exc: + except urllib2.HTTPError as exc: if exc.code == 404: raise ValueError("unknown package '{}'".format(pkg)) raise |