]> code.delx.au - offlineimap/commitdiff
Remove a redundant (and mostly harmless) output of the error string from the Curses UI.
authorDaniel Burrows <dburrows@debian.org>
Fri, 1 Dec 2006 11:27:12 +0000 (12:27 +0100)
committerDaniel Burrows <dburrows@debian.org>
Fri, 1 Dec 2006 11:27:12 +0000 (12:27 +0100)
It looks like I accidentally recorded the wrong version of Curses.py --
originally this code was there, but I moved it over to UIBase so it would
cover the TTY UI also.

offlineimap/ui/Curses.py

index bb1d9470255604b8afc6505744cea479a0ee4b68..3ebce9d0e80cd1e9d9c9234bf08558730ec75ea7 100644 (file)
@@ -527,11 +527,6 @@ class Blinkenlights(BlinkenBase, UIBase):
 
     def terminate(s, exitstatus = 0, errortitle = None, errormsg = None):
         s.c.stop()
-        if errormsg <> None:
-            if errortitle <> None:
-                sys.stderr.write('%s: %s\n'%(errortitle, errormsg))
-            else:
-                sys.stderr.write('%s\n' % errormsg)
         UIBase.terminate(s, exitstatus = exitstatus, errortitle = errortitle, errormsg = errormsg)
 
     def threadException(s, thread):