if the transport is wrong we should throw a clienterrror

This commit is contained in:
Thomas S Hatch 2016-06-13 16:46:15 -06:00
parent 99a936e952
commit 0c4959bb4a

View File

@ -878,6 +878,9 @@ class SaltMessageClient(object):
if self._connecting_future.done():
self._connecting_future = self.connect()
yield self._connecting_future
except TypeError:
# This is an invalid transport
raise SaltClientError
except Exception as e:
log.error('Exception parsing response', exc_info=True)
for future in six.itervalues(self.send_future_map):