From 0ff4f610de387f7c7f21b1adc7c881bf78d484dc Mon Sep 17 00:00:00 2001 From: jgoerzen Date: Tue, 29 Apr 2003 02:48:55 +0100 Subject: [PATCH] /offlineimap/head: changeset 455 Raise an exception when the status area is locked. This will cause UIs to go through their normal exception handling code. In particular, for the Curses.Blinkenlights interface, the Curses module will be stopped and the error message will be printed on the console. Previously, this error message would not have been visible. Closes: #185709. --- offlineimap/head/debian/changelog | 5 +++++ offlineimap/head/offlineimap/ui/UIBase.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/offlineimap/head/debian/changelog b/offlineimap/head/debian/changelog index 7cb02a9..844852e 100644 --- a/offlineimap/head/debian/changelog +++ b/offlineimap/head/debian/changelog @@ -3,6 +3,11 @@ offlineimap (3.99.15) unstable; urgency=low * Backed out removal of SYNC_WITH_TIMER_TERMINATE code to deal with completed syncs. Without this code, -o broke because the app would never terminate. Closes: #190063. + * Raise an exception when the status area is locked. This will cause UIs + to go through their normal exception handling code. In particular, for + the Curses.Blinkenlights interface, the Curses module will be stopped + and the error message will be printed on the console. Previously, this + error message would not have been visible. Closes: #185709. -- John Goerzen Mon, 28 Apr 2003 14:00:32 -0500 diff --git a/offlineimap/head/offlineimap/ui/UIBase.py b/offlineimap/head/offlineimap/ui/UIBase.py index 083d21d..8296581 100644 --- a/offlineimap/head/offlineimap/ui/UIBase.py +++ b/offlineimap/head/offlineimap/ui/UIBase.py @@ -102,7 +102,7 @@ class UIBase: s.warn("Invalid debug type: %s" % debugtype) def locked(s): - s.warn("Another OfflineIMAP is running with the same metadatadir; exiting.") + raise Exception, "Another OfflineIMAP is running with the same metadatadir; exiting." def getnicename(s, object): prelimname = str(object.__class__).split('.')[-1]