From cc04ebb4f6ebbf80080b7990d710a55fd55a19a2 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/list-queue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/list-queue') diff --git a/bin/list-queue b/bin/list-queue index 793f0aec9b..5375493d54 100755 --- a/bin/list-queue +++ b/bin/list-queue @@ -180,7 +180,7 @@ def updatechanges(db, ondisk): try: dist = changes["Distribution"] debs = set(pkg["name"] for pkg in changes["Checksums-Sha1"]) - except KeyError, e: + except KeyError as e: raise IOError("missing key in " + repr(path) + ": " + repr(e.args[0])) indb[path] = stat + (dist, debs) -- cgit v1.2.3