X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4d648ebbbe5705878080b9cbf1ca61497323c592..6cc36c57d01a9e67226b954b97bc6b87738f9129:/tools/appveyor-irc-notify.py diff --git a/tools/appveyor-irc-notify.py b/tools/appveyor-irc-notify.py index 463104f386..3a84ebb54c 100644 --- a/tools/appveyor-irc-notify.py +++ b/tools/appveyor-irc-notify.py @@ -146,7 +146,7 @@ if __name__ == '__main__': try: # establish connection - irc_sock = ssl.wrap_socket(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) + irc_sock = ssl.wrap_socket(socket.socket(socket.AF_INET, socket.SOCK_STREAM), ssl_version=ssl.PROTOCOL_TLS) irc_sock.connect((socket.gethostbyname('irc.oftc.net'), 6697)) irc_sock.send('NICK {0}\r\nUSER {0} * 0 :{0}\r\n'.format(irc_username).encode('utf_8')) irc_file = irc_sock.makefile() @@ -174,7 +174,7 @@ if __name__ == '__main__': # leave the channel irc_sock.send('PART #{}\r\n'.format(channel).encode('utf_8')) sys.exit() - except BaseException: + except Exception: e = sys.exc_info()[0] print(e) sys.exit()