From 6e62da435b347a563ee9dc0ab57eb2109b4c2572 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 1 Dec 2010 13:12:09 +0100 Subject: [PATCH] Fix Machine ui to not error out on ui.warn() All other uis (especially BaseUI) define as warn(self, msg, minor = 0) just MachineUI required minor without a default. This leads the Machine UI to error out with an exception if we pass it ui.warn("string") which is the common thing in our code base. This patch is therefore small but critical in fixing this UI. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- 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 0a07e3e..03c3312 100644 --- a/offlineimap/ui/Machine.py +++ b/offlineimap/ui/Machine.py @@ -56,7 +56,7 @@ class MachineUI(UIBase): def _display(s, msg): s._printData('_display', msg) - def warn(s, msg, minor): + def warn(s, msg, minor = 0): s._printData('warn', '%s\n%d' % (msg, int(minor))) def registerthread(s, account):