diff --git a/salt/transport/zeromq.py b/salt/transport/zeromq.py index 5735c1bc15ba..c704b1ec2b23 100644 --- a/salt/transport/zeromq.py +++ b/salt/transport/zeromq.py @@ -723,7 +723,7 @@ def publish_daemon( try: pub_sock.setsockopt(zmq.HWM, self.opts.get("pub_hwm", 1000)) # in zmq >= 3.0, there are separate send and receive HWM settings - except AttributeError: + except (AttributeError, zmq.error.ZMQError): # Set the High Water Marks. For more information on HWM, see: # http://api.zeromq.org/4-1:zmq-setsockopt pub_sock.setsockopt(zmq.SNDHWM, self.opts.get("pub_hwm", 1000))