Ignore QLocalSocket.ServerNotFoundError while connecting.

This commit is contained in:
Florian Bruhin 2014-10-13 07:49:01 +02:00
parent 2f0bbab635
commit 8195f1875e

View File

@ -74,7 +74,8 @@ def send_to_running_instance(cmdlist):
else:
return True
else:
if socket.error() != QLocalSocket.ConnectionRefusedError:
if socket.error() not in (QLocalSocket.ConnectionRefusedError,
QLocalSocket.ServerNotFoundError):
_socket_error("connecting to running instance", socket)
else:
return False