/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:
@ -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]
|
||||
|
Reference in New Issue
Block a user