Do not traceback on /set without any argument

This commit is contained in:
Florent Le Coz 2015-03-18 14:24:17 +01:00
parent 342f24bfb0
commit 7b05fa47c1

View file

@ -541,6 +541,8 @@ def command_set(self, args):
"""
/set [module|][section] <option> [value]
"""
if args is None:
return self.command_help('set')
if len(args) == 1:
option = args[0]
value = config.get(option)