summaryrefslogtreecommitdiff
path: root/lib/ansible/galaxy/role.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/galaxy/role.py')
-rw-r--r--lib/ansible/galaxy/role.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ansible/galaxy/role.py b/lib/ansible/galaxy/role.py
index e727f112b0..cf5cdb9d2e 100644
--- a/lib/ansible/galaxy/role.py
+++ b/lib/ansible/galaxy/role.py
@@ -100,7 +100,7 @@ class GalaxyRole(object):
try:
f = open(meta_path, 'r')
self._metadata = yaml.safe_load(f)
- except:
+ except Exception:
display.vvvvv("Unable to load metadata for %s" % self.name)
return False
finally:
@@ -120,7 +120,7 @@ class GalaxyRole(object):
try:
f = open(info_path, 'r')
self._install_info = yaml.safe_load(f)
- except:
+ except Exception:
display.vvvvv("Unable to load Galaxy install info for %s" % self.name)
return False
finally:
@@ -144,7 +144,7 @@ class GalaxyRole(object):
with open(info_path, 'w+') as f:
try:
self._install_info = yaml.safe_dump(info, f)
- except:
+ except Exception:
return False
return True
@@ -159,7 +159,7 @@ class GalaxyRole(object):
try:
rmtree(self.path)
return True
- except:
+ except Exception:
pass
return False
@@ -285,7 +285,7 @@ class GalaxyRole(object):
else:
try:
self._metadata = yaml.safe_load(role_tar_file.extractfile(meta_file))
- except:
+ except Exception:
raise AnsibleError("this role does not appear to have a valid meta/main.yml file.")
# we strip off any higher-level directories for all of the files contained within