diff --git a/oslo_privsep/comm.py b/oslo_privsep/comm.py index fb1872f..c609a87 100644 --- a/oslo_privsep/comm.py +++ b/oslo_privsep/comm.py @@ -24,6 +24,7 @@ import datetime import enum import logging import socket +import sys import threading import msgpack @@ -186,6 +187,9 @@ class ClientChannel(object): self.writer.send((myid, msg)) reply = future.result() + except Exception: + LOG.warning("Unexpected error: {}".format(sys.exc_info()[0])) + raise finally: del self.outstanding_msgs[myid]