mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Update bare exceptions to specify Exception.
This will keep us from accidentally catching program-exiting exceptions like KeyboardInterupt and SystemExit.
This commit is contained in:
@@ -103,7 +103,7 @@ class Display(with_metaclass(Singleton, object)):
|
||||
self.cows_available = set([to_text(c) for c in out.split()])
|
||||
if C.ANSIBLE_COW_WHITELIST:
|
||||
self.cows_available = set(C.ANSIBLE_COW_WHITELIST).intersection(self.cows_available)
|
||||
except:
|
||||
except Exception:
|
||||
# could not execute cowsay for some reason
|
||||
self.b_cowsay = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user