From 36dd46abfc35ca435600c307f09f84ebb9b3add5 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Fri, 20 Jan 2012 11:33:30 +0100 Subject: [PATCH] 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 --- offlineimap/ui/Machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/ui/Machine.py b/offlineimap/ui/Machine.py index 4bf1418..a87395d 100644 --- a/offlineimap/ui/Machine.py +++ b/offlineimap/ui/Machine.py @@ -45,7 +45,7 @@ class MachineUI(UIBase): def _msg(s, 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 self.logger.warning("%s:%s:%s:%s" % ( 'warn', '', currentThread().getName(), msg))