Fix warn() output for MachineUI
We used "self" but the paramter was called "s". Fixes a crash when we ui.warn() (only when using the MachineUI). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
09ef5ab042
commit
36dd46abfc
@ -45,7 +45,7 @@ class MachineUI(UIBase):
|
|||||||
def _msg(s, msg):
|
def _msg(s, msg):
|
||||||
s._printData('_display', msg)
|
s._printData('_display', msg)
|
||||||
|
|
||||||
def warn(s, msg, minor = 0):
|
def warn(self, msg, minor = 0):
|
||||||
# TODO, remove and cleanup the unused minor stuff
|
# TODO, remove and cleanup the unused minor stuff
|
||||||
self.logger.warning("%s:%s:%s:%s" % (
|
self.logger.warning("%s:%s:%s:%s" % (
|
||||||
'warn', '', currentThread().getName(), msg))
|
'warn', '', currentThread().getName(), msg))
|
||||||
|
Loading…
Reference in New Issue
Block a user