From 4a8c98e6d26cf819b5ec171d66d19b15316bbf49 Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Mon, 16 Mar 2009 21:12:36 -0400 Subject: [PATCH] Dump descriptions of error messages to stderr instead of stdout. --- curses/wicd-curses.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index 323d7e8..9586d3b 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -90,13 +90,13 @@ class wrap_exceptions: #gobject.source_remove(redraw_tag) loop.quit() ui.stop() - print "\n"+language['terminated'] + print >> sys.stderr, "\n"+language['terminated'] #raise except DBusException: #gobject.source_remove(redraw_tag) loop.quit() ui.stop() - print "\n"+language['dbus_fail'] + print >> sys.stderr,"\n"+language['dbus_fail'] raise except : # Quit the loop @@ -105,7 +105,7 @@ class wrap_exceptions: # Zap the screen ui.stop() # Print out standard notification: - print "\n" + language['exception'] + print >> sys.stderr, "\n" + language['exception'] # Flush the buffer so that the notification is always above the # backtrace sys.stdout.flush() @@ -933,7 +933,7 @@ def setup_dbus(force=True): except DBusException: # I may need to be a little more verbose here. # Suggestions as to what should go here, please? - print language['cannot_connect_to_daemon'] + print >> sys.stderr, language['cannot_connect_to_daemon'] #raise # return False # <- Will need soon. bus = dbusmanager.get_bus()