summaryrefslogtreecommitdiff
path: root/bin/arch
diff options
context:
space:
mode:
authorklm1998-12-01 20:11:09 +0000
committerklm1998-12-01 20:11:09 +0000
commite142aab23126ddacf0fcc7a1948de2b80365e2d4 (patch)
tree891d28380a9a9e2c60f78fdeaec4fc1b10728804 /bin/arch
parent9ff75c0a8cf21d3b1f78781ce6f856b72f427fd5 (diff)
downloadmailman-e142aab23126ddacf0fcc7a1948de2b80365e2d4.tar.gz
mailman-e142aab23126ddacf0fcc7a1948de2b80365e2d4.tar.zst
mailman-e142aab23126ddacf0fcc7a1948de2b80365e2d4.zip
Unpack of the wrong-size argument list yields a ValueError, not an
IndexError. (I left the IndexError on the exception list in case there's some other purpose to it...)
Diffstat (limited to 'bin/arch')
-rw-r--r--bin/arch2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/arch b/bin/arch
index 9edf107ca..fd892b484 100644
--- a/bin/arch
+++ b/bin/arch
@@ -25,7 +25,7 @@ from Mailman.Errors import *
try:
listname, mbox = sys.argv[1:]
-except IndexError:
+except (IndexError, ValueError):
print "usage: arch <listname> <mbox>"
sys.exit(0)