diff --git a/salt/minion.py b/salt/minion.py index 764bab89ba..9992cf79f0 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -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