Update exception handling to be python3 compat
This commit is contained in:
parent
df09691a38
commit
ddac6fa9f3
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ class VaultFile(object):
|
|||
raise errors.AnsibleError("%s does not exist" % self.filename)
|
||||
try:
|
||||
self.filehandle = open(filename, "rb")
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
raise errors.AnsibleError("Could not open %s: %s" % (self.filename, str(e)))
|
||||
|
||||
_, self.tmpfile = tempfile.mkstemp()
|
||||
|
|
Loading…
Reference in a new issue