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/list-queue | |
parent | 9889b3ebf70085d28f84371a931adcced2ff19fd (diff) |
Update python exception syntax for Python 3.6 compatibility
Diffstat (limited to 'bin/list-queue')
-rwxr-xr-x | bin/list-queue | 2 |
1 files changed, 1 insertions, 1 deletions
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) |