Testing a string against an int value is illegal and
is not necessary in this case, this patch removes the
problematic test.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
self._configfile = arg
def _set_debuglevel(self, option, opt_str, arg, parser):
- if arg < 0:
- raise optparse.OptionValueError("invalid %s option value: %s" %
- (opt_str, arg))
self._lp.set('debug level', arg)
parser.values.debuglevel = arg