From 45e0b233a5948333ab83e1ae34461ff47817caf1 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 14 Feb 2011 15:52:07 +0100 Subject: [PATCH] signal handler should only be called with 2 args I accidentally added "self" as first parameter to the signal handler method. Of course it is not called with a class instance, the signal handler always only receives 2 parameters: the signal number and the stack frame. So just removing the self fixes things. Proposed-by: Christian Holme Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/init.py b/offlineimap/init.py index 44c7229..232de25 100644 --- a/offlineimap/init.py +++ b/offlineimap/init.py @@ -249,7 +249,7 @@ class OfflineImap: self.lock(config, ui) - def sigterm_handler(self, signum, frame): + def sigterm_handler(signum, frame): # die immediately ui = getglobalui() ui.terminate(errormsg="terminating...")