Missing object item throws an AttributeError not a NameError.

This commit is contained in:
C. R. Oldham 2015-10-12 13:22:15 -06:00
parent 4cf2b56d5f
commit ba3e423b87

View file

@ -1331,9 +1331,9 @@ class Minion(MinionBase):
Refresh the functions and returners.
'''
log.debug('Refreshing modules. Notify={0}'.format(notify))
try:
if hasattr(self, 'proxy'):
self.functions, self.returners, _ = self._load_modules(force_refresh, notify=notify, proxy=self.proxy)
except NameError:
else:
self.functions, self.returners, _ = self._load_modules(force_refresh, notify=notify)
self.schedule.functions = self.functions