mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +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:
@@ -632,7 +632,7 @@ class Nmcli(object):
|
||||
for setting in secrets:
|
||||
for key in secrets[setting]:
|
||||
config[setting_name][key] = secrets[setting][key]
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def dict_to_string(self, d):
|
||||
|
||||
Reference in New Issue
Block a user