mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Use proper variable names
This commit is contained in:
parent
f222d896dc
commit
7c60ca4189
@ -1351,13 +1351,13 @@ class Minion(object):
|
||||
except Exception:
|
||||
log.debug('Exception while handling events', exc_info=True)
|
||||
|
||||
except zmq.ZMQError as e:
|
||||
except zmq.ZMQError as exc:
|
||||
# The interrupt caused by python handling the
|
||||
# SIGCHLD. Throws this error with errno == EINTR.
|
||||
# Nothing to recieve on the zmq socket throws this error
|
||||
# with EAGAIN.
|
||||
# Both are safe to ignore
|
||||
if e.errno != errno.EAGAIN and e.errno != errno.EINTR:
|
||||
if exc.errno != errno.EAGAIN and exc.errno != errno.EINTR:
|
||||
log.critical('Unexpected ZMQError while polling minion',
|
||||
exc_info=True)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user