From ddac6fa9f30eeb2a2280c9f49f33410253d1c48c Mon Sep 17 00:00:00 2001
From: Toshio Kuratomi <toshio@fedoraproject.org>
Date: Wed, 8 Jul 2015 08:58:07 -0700
Subject: [PATCH] Update exception handling to be python3 compat

---
 lib/ansible/parsing/vault/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ansible/parsing/vault/__init__.py b/lib/ansible/parsing/vault/__init__.py
index 4892f2f0db..7a2bd378c1 100644
--- a/lib/ansible/parsing/vault/__init__.py
+++ b/lib/ansible/parsing/vault/__init__.py
@@ -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()