mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
The exception is properly caught inthe event system now
This commit is contained in:
parent
a731b97737
commit
4502019340
@ -791,17 +791,11 @@ class LocalClient(object):
|
||||
if event is None:
|
||||
event = self.event
|
||||
while True:
|
||||
try:
|
||||
raw = event.get_event_noblock()
|
||||
if raw and raw.get('tag', '').startswith(jid):
|
||||
yield raw
|
||||
else:
|
||||
yield None
|
||||
except zmq.ZMQError as ex:
|
||||
if ex.errno == errno.EAGAIN or ex.errno == errno.EINTR:
|
||||
yield None
|
||||
else:
|
||||
raise
|
||||
raw = event.get_event_noblock()
|
||||
if raw and raw.get('tag', '').startswith(jid):
|
||||
yield raw
|
||||
else:
|
||||
yield None
|
||||
|
||||
def get_iter_returns(
|
||||
self,
|
||||
|
Loading…
Reference in New Issue
Block a user