From 8017b2d9f1eceaf31aa95f87ee356ab8c114cde3 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sat, 8 Jan 2011 23:20:27 +0000 Subject: Handle authentication and connection errors. fixed #1994 --- src/poezio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/poezio.py') diff --git a/src/poezio.py b/src/poezio.py index 64a62d04..8362cd19 100644 --- a/src/poezio.py +++ b/src/poezio.py @@ -34,7 +34,8 @@ if __name__ == '__main__': signal.signal(signal.SIGINT, signal.SIG_IGN) # ignore ctrl-c if options.debug: logging.basicConfig(filename=options.debug,level=logging.DEBUG) - connection.start() # Connect to remote server + if not connection.start(): # Connect to remote server + core.on_failed_connection() # Disable any display of non-wanted text on the terminal # by redirecting stderr to /dev/null # sys.stderr = open('/dev/null', 'a') -- cgit v1.2.3