mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Use new exception as var style
This commit is contained in:
parent
8cd2de6134
commit
aea12f61f3
@ -813,7 +813,7 @@ class LocalClient(Client):
|
||||
ret = {}
|
||||
try:
|
||||
path = self._check_proto(path)
|
||||
except MinionError, err:
|
||||
except MinionError as err:
|
||||
if not os.path.isfile(path):
|
||||
msg = 'specified file {0} is not present to generate hash: {1}'
|
||||
log.warning(msg.format(path, err))
|
||||
@ -1097,7 +1097,7 @@ class RemoteClient(Client):
|
||||
'''
|
||||
try:
|
||||
path = self._check_proto(path)
|
||||
except MinionError, err:
|
||||
except MinionError as err:
|
||||
if not os.path.isfile(path):
|
||||
msg = 'specified file {0} is not present to generate hash: {1}'
|
||||
log.warning(msg.format(path, err))
|
||||
|
Loading…
Reference in New Issue
Block a user