A few naughty external scripts do 'raise getopt.error, "blah"', and

now crash because two arguments are expected.  Add a default value
   to keep those scripts running.
This commit is contained in:
Andrew M. Kuchling 2003-02-06 19:52:56 +00:00
parent 83e879d99f
commit 0189266456

View file

@ -39,7 +39,7 @@
class GetoptError(Exception):
opt = ''
msg = ''
def __init__(self, msg, opt):
def __init__(self, msg, opt=''):
self.msg = msg
self.opt = opt
Exception.__init__(self, msg, opt)