2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-27 07:41:13 +00:00

Fix confetty live reconnect behavior

If on a remote socket, socket.error could be thrown.  A mistake was
made where the Python2.x behavior of ',' on an except clause without
parenthesis misinterpreted socket.error as a variable name to store
instance of socket.gaierror.  Put Parentheses in to declare the desired
behavior.
This commit is contained in:
Jarrod Johnson 2015-03-26 14:03:56 -04:00
parent a28b67e9aa
commit 46b7550a41

View File

@ -642,7 +642,7 @@ while inconsole or not doexit:
try:
server_connect()
connected = True
except socket.gaierror, socket.error:
except (socket.gaierror, socket.error):
pass
if not connected:
time.sleep(1)