mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +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:
@@ -115,7 +115,7 @@ def main():
|
||||
token=api_creds.token, port=api_creds.port)
|
||||
password_changed = True
|
||||
return ansible_return(module, None, False, req=data)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
if not password_changed:
|
||||
|
||||
Reference in New Issue
Block a user