FIX wrong access to debug configuration value.

Also adds the option to the config spec.
main
Olivier Mangin 9 years ago
parent ed2bbb4498
commit 348bd6d64b

@ -22,6 +22,9 @@ open_cmd = string(default=None)
# "kate --block"
edit_cmd = string(default='')
# If true debug mode is on which means exceptions are not catched and
# the full python stack is printed.
debug = boolean(default=False)
[formating]

@ -62,7 +62,7 @@ class PrintUI(object):
errors='replace')
self._stderr = codecs.getwriter(self.encoding)(_get_raw_stderr(),
errors='replace')
self.debug = conf.get('debug', False)
self.debug = conf['main'].get('debug', False)
def message(self, *messages, **kwargs):
kwargs['file'] = self._stdout

Loading…
Cancel
Save