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
"""See and modify values of Sopel's config object.
Trigger args:
arg1 - section and option, in the form "section.option"
arg2 - value
If there is no section, section will default to "core".
If value is None, the option will be deleted.
"""
says that if value is None, the option will be deleted. Currently, a None value does not get parsed properly, and the setting just ends up getting converted to a literal None string, as opposed to an actual NoneType.
I considered that the sentence meant that no value should be supplied, but that would preclude the See part of the See and modify values of Sopel's config object, where no argument should be provided for setting (which is working as expected). Thus, 🐛
The
.set
command ofadmin.py
does not work as described.sopel/sopel/modules/admin.py
Lines 252 to 263 in 824ae74
says that
if value is None, the option will be deleted
. Currently, aNone
value does not get parsed properly, and the setting just ends up getting converted to a literalNone
string, as opposed to an actualNoneType
.I considered that the sentence meant that no value should be supplied, but that would preclude the See part of the
See and modify values of Sopel's config object
, where no argument should be provided for setting (which is working as expected). Thus, 🐛Steps to replicate:
So, I wondered if
.save
'ing the config would somehow solve the issue...Nope...
The text was updated successfully, but these errors were encountered: