FIX wrong access to debug configuration value.
Also adds the option to the config spec.
This commit is contained in:
parent
ed2bbb4498
commit
348bd6d64b
@ -22,6 +22,9 @@ open_cmd = string(default=None)
|
|||||||
# "kate --block"
|
# "kate --block"
|
||||||
edit_cmd = string(default='')
|
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]
|
[formating]
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ class PrintUI(object):
|
|||||||
errors='replace')
|
errors='replace')
|
||||||
self._stderr = codecs.getwriter(self.encoding)(_get_raw_stderr(),
|
self._stderr = codecs.getwriter(self.encoding)(_get_raw_stderr(),
|
||||||
errors='replace')
|
errors='replace')
|
||||||
self.debug = conf.get('debug', False)
|
self.debug = conf['main'].get('debug', False)
|
||||||
|
|
||||||
def message(self, *messages, **kwargs):
|
def message(self, *messages, **kwargs):
|
||||||
kwargs['file'] = self._stdout
|
kwargs['file'] = self._stdout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user