Disabled pylint warning

I believe the pylint warning to be a false positive, so I disabled it
and added a comment explaining why.

Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>
This commit is contained in:
Sergey Kizunov 2016-03-10 12:34:56 -06:00 committed by rallytime
parent ef7f3ed597
commit d234c8627a

View File

@ -533,7 +533,9 @@ class MinionBase(object):
msg = ('No master could be reached or all masters '
'denied the minions connection attempt.')
log.error(msg)
raise last_exc
# If the code reaches this point, 'last_exc'
# should already be set.
raise last_exc # pylint: disable=E0702
else:
self.tok = pub_channel.auth.gen_token('salt')
self.connected = True