Change bare exception

This commit is contained in:
Mike Place 2014-08-18 11:52:25 -06:00
parent 7b4c9ea501
commit 42793678e6

View File

@ -419,7 +419,7 @@ def refresh_pillar():
'''
try:
ret = __salt__['event.fire']({}, 'pillar_refresh')
except:
except KeyError:
log.error('Event module not available. Module refresh failed.')
ret = False # Effectively a no-op, since we can't really return without an event system
return ret
@ -437,7 +437,7 @@ def refresh_modules():
'''
try:
ret = __salt__['event.fire']({}, 'module_refresh')
except:
except KeyError:
log.error('Event module not available. Module refresh failed.')
ret = False # Effectively a no-op, since we can't really return without an event system
return ret