diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2011-01-08 23:20:27 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2011-01-08 23:20:27 +0000 |
commit | 8017b2d9f1eceaf31aa95f87ee356ab8c114cde3 (patch) | |
tree | 8a4df03f24a7c785a37c1a947b7b05486894af0b /src/poezio.py | |
parent | af651cbc46e5227ff815689ee7cf3ce4b3ffe0be (diff) | |
download | poezio-8017b2d9f1eceaf31aa95f87ee356ab8c114cde3.tar.gz poezio-8017b2d9f1eceaf31aa95f87ee356ab8c114cde3.tar.bz2 poezio-8017b2d9f1eceaf31aa95f87ee356ab8c114cde3.tar.xz poezio-8017b2d9f1eceaf31aa95f87ee356ab8c114cde3.zip |
Handle authentication and connection errors. fixed #1994
Diffstat (limited to 'src/poezio.py')
-rw-r--r-- | src/poezio.py | 3 |
1 files changed, 2 insertions, 1 deletions
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') |