/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.
This commit is contained in:
jgoerzen 2003-04-29 02:48:55 +01:00
parent eab7170aea
commit 0ff4f610de
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,11 @@ offlineimap (3.99.15) unstable; urgency=low
* Backed out removal of SYNC_WITH_TIMER_TERMINATE code to deal with * Backed out removal of SYNC_WITH_TIMER_TERMINATE code to deal with
completed syncs. Without this code, -o broke because the app would completed syncs. Without this code, -o broke because the app would
never terminate. Closes: #190063. 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 <jgoerzen@complete.org> Mon, 28 Apr 2003 14:00:32 -0500 -- John Goerzen <jgoerzen@complete.org> Mon, 28 Apr 2003 14:00:32 -0500

View File

@ -102,7 +102,7 @@ class UIBase:
s.warn("Invalid debug type: %s" % debugtype) s.warn("Invalid debug type: %s" % debugtype)
def locked(s): 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): def getnicename(s, object):
prelimname = str(object.__class__).split('.')[-1] prelimname = str(object.__class__).split('.')[-1]