Commit 69c1a754 authored by Guillaume Seguin's avatar Guillaume Seguin

Don't print out test gets when parsing config

All we are interested in is catching potential exceptions indicating the
variable does not exist, the print was just a sanity check.
parent 064ef774
......@@ -553,8 +553,10 @@ class pronsole(cmd.Cmd):
self.log("%s = %s" % (k, str(getattr(self.settings, k))))
return
if len(args) < 2:
# Try getting the default value of the setting to check whether it
# actually exists
try:
self.log("%s = %s" % (args[0], getattr(self.settings, args[0])))
getattr(self.settings, args[0])
except AttributeError:
logging.warning("Unknown variable '%s'" % args[0])
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment