diff --git a/offlineimap/init.py b/offlineimap/init.py index e5560a9..063a2c0 100644 --- a/offlineimap/init.py +++ b/offlineimap/init.py @@ -347,7 +347,8 @@ class OfflineImap: except (SystemExit): raise except Exception, e: - ui.mainException() + ui.error(e) + ui.terminate() def sync_singlethreaded(self, accs, config): """Executed if we do not want a separate syncmaster thread diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py index f5dca57..5017934 100644 --- a/offlineimap/ui/UIBase.py +++ b/offlineimap/ui/UIBase.py @@ -344,14 +344,6 @@ class UIBase: s.delThreadDebugLog(thread) s.terminate(100) - def getMainExceptionString(s): - return "Main program terminated with exception:\n%s\n" %\ - traceback.format_exc() + \ - s.getThreadDebugLog(threading.currentThread()) - - def mainException(s): - s._msg(s.getMainExceptionString()) - def terminate(self, exitstatus = 0, errortitle = None, errormsg = None): """Called to terminate the application.""" #print any exceptions that have occurred over the run