Add an err() and use it
This commit is contained in:
parent
fcb7dda870
commit
327eadd84e
|
@ -49,6 +49,8 @@ debug = True
|
||||||
def dbg (log = ""):
|
def dbg (log = ""):
|
||||||
if debug:
|
if debug:
|
||||||
print >> sys.stderr, log
|
print >> sys.stderr, log
|
||||||
|
def err (log = ""):
|
||||||
|
print >> sys.stderr, log
|
||||||
|
|
||||||
class TerminatorConfig:
|
class TerminatorConfig:
|
||||||
callback = None
|
callback = None
|
||||||
|
@ -182,7 +184,7 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore):
|
||||||
elif deftype == 'float':
|
elif deftype == 'float':
|
||||||
self.values[key] = float (value)
|
self.values[key] = float (value)
|
||||||
elif deftype == 'list':
|
elif deftype == 'list':
|
||||||
print >> sys.stderr, _("Reading list values from .terminatorrc is not currently supported")
|
err (_("Reading list values from .terminatorrc is not currently supported"))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
else:
|
else:
|
||||||
self.values[key] = value
|
self.values[key] = value
|
||||||
|
|
Loading…
Reference in New Issue