summaryrefslogtreecommitdiffstats
path: root/bin/list-queue
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2018-06-18 17:11:31 +1000
committerBrian May <brian@linuxpenguins.xyz>2018-07-13 15:15:20 +1000
commit8035da4845d2be4cb7d2f0a1371cd6f30e7b3bdd (patch)
tree0ab229bc7125473fed55df05811126c5ed55abaa /bin/list-queue
parent1dd3d6336dfc2c0914660020f4f0f8a2ed43b633 (diff)
Update python exception syntax for Python 3.6 compatibility
Diffstat (limited to 'bin/list-queue')
-rwxr-xr-xbin/list-queue2
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)

© 2014-2024 Faster IT GmbH | imprint | privacy policy