Skip to content

Error in configparser #2

@jorritolthuis

Description

@jorritolthuis

When setting a new value for a variable in commit 04fc0fe, an error is raised.

  File "/Users/jorrit/Documents/GitHub/AdBleed/src/configuration.py", line 55, in setNumberOfHosts
    self.setConf(self.noOfHosts[0], self.noOfHosts[1], str.encode(value))
  File "/Users/jorrit/Documents/GitHub/AdBleed/src/configuration.py", line 20, in setConf
    self.config.set(section, variable, value)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/configparser.py", line 1192, in set
    self._validate_value_types(option=option, value=value)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/configparser.py", line 1177, in _validate_value_types
    raise TypeError("option values must be strings")
TypeError: option values must be strings

This error occurs when the user tries to change the value of any variable using the CLI. This version of the CLI is committed in 61e77d0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions