FIX wrong access to debug configuration value.

Also adds the option to the config spec.
This commit is contained in:
Olivier Mangin 2016-01-15 16:16:29 -05:00
parent ed2bbb4498
commit 348bd6d64b
2 changed files with 4 additions and 1 deletions

View File

@ -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]

View File

@ -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