You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
There seems to be a bug in configparser.
If one tries to set the new value of a variable to something of type str (default user input)
The error shows that one should input a bytes-like object. But when the str is encoded to bytes: bytes(value, 'utf-8'), configparser needs a string object.
When setting a new value for a variable in commit 04fc0fe, an error is raised.
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.
The text was updated successfully, but these errors were encountered: