Commit 01892664 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

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.
parent 83e879d9
......@@ -39,7 +39,7 @@ import os
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment