summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-03-18 14:24:17 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-03-18 14:25:24 +0100
commit7b05fa47c157050378c0c695d31e62317b829020 (patch)
tree997fad813585611ae1d25e86810e6133e4165dc7 /src
parent342f24bfb00ad867f15767f38863302fb2decd07 (diff)
downloadpoezio-7b05fa47c157050378c0c695d31e62317b829020.tar.gz
poezio-7b05fa47c157050378c0c695d31e62317b829020.tar.bz2
poezio-7b05fa47c157050378c0c695d31e62317b829020.tar.xz
poezio-7b05fa47c157050378c0c695d31e62317b829020.zip
Do not traceback on /set without any argument
Diffstat (limited to 'src')
-rw-r--r--src/core/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/commands.py b/src/core/commands.py
index 962a13e8..fdeea8f7 100644
--- a/src/core/commands.py
+++ b/src/core/commands.py
@@ -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)