mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Change bare exception
This commit is contained in:
parent
7b4c9ea501
commit
42793678e6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user