configglue team mailing list archive
-
configglue team
-
Mailing list archive
-
Message #00225
[Bug 812325] [NEW] TypeError when using IntOption(fatal=True) and providing a value in the config file
Public bug reported:
See attached glue_test.py for steps to reproduce.
And the traceback is:
Traceback (most recent call last):
File "glue_test.py", line 21, in <module>
op, opts, args = pyschema.schemaconfigglue(scp)
File "/usr/lib/pymodules/python2.6/configglue/pyschema/glue.py", line 101, in schemaconfigglue
set_value(section, option, op_value)
File "/usr/lib/pymodules/python2.6/configglue/pyschema/glue.py", line 83, in set_value
value = option.parse(value)
File "/usr/lib/pymodules/python2.6/configglue/pyschema/schema.py", line 394, in parse
return int(value)
TypeError: int() argument must be a string or a number, not 'NoneType'
** Affects: configglue
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of
Configglue developers, which is the registrant for configglue.
https://bugs.launchpad.net/bugs/812325
Title:
TypeError when using IntOption(fatal=True) and providing a value in
the config file
Status in configglue:
New
Bug description:
See attached glue_test.py for steps to reproduce.
And the traceback is:
Traceback (most recent call last):
File "glue_test.py", line 21, in <module>
op, opts, args = pyschema.schemaconfigglue(scp)
File "/usr/lib/pymodules/python2.6/configglue/pyschema/glue.py", line 101, in schemaconfigglue
set_value(section, option, op_value)
File "/usr/lib/pymodules/python2.6/configglue/pyschema/glue.py", line 83, in set_value
value = option.parse(value)
File "/usr/lib/pymodules/python2.6/configglue/pyschema/schema.py", line 394, in parse
return int(value)
TypeError: int() argument must be a string or a number, not 'NoneType'
To manage notifications about this bug go to:
https://bugs.launchpad.net/configglue/+bug/812325/+subscriptions
Follow ups
References