← Back to team overview

configglue team mailing list archive

[Bug 812325] Re: TypeError when using IntOption(fatal=True) and providing a value in the config file

 

** Changed in: configglue
       Status: New => In Progress

** Changed in: configglue
     Assignee: (unassigned) => Ricardo Kirkner (ricardokirkner)

** Changed in: configglue
    Milestone: None => 1.0

** Changed in: configglue
   Importance: Undecided => Medium

-- 
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:
  In Progress

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


References