From e142aab23126ddacf0fcc7a1948de2b80365e2d4 Mon Sep 17 00:00:00 2001 From: klm Date: Tue, 1 Dec 1998 20:11:09 +0000 Subject: 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...) --- bin/arch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " sys.exit(0) -- cgit v1.3.1