From 2d387d61be46768882e534a9dd9bac9881f894fe Mon Sep 17 00:00:00 2001 From: Brian May Date: Mon, 18 Jun 2018 17:11:31 +1000 Subject: Update python exception syntax for Python 3.6 compatibility --- bin/contact-maintainers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/contact-maintainers') 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 -- cgit v1.2.3