diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2018-09-07 17:59:46 -0700 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-12-16 15:03:19 -0800 |
commit | 3fba0062078cc04eabb460ec1eb13a4739235199 (patch) | |
tree | 9c09103ce103a90f97ccf3736ca6c2502d7860f8 /lib/ansible/modules/cloud/rackspace/rax_keypair.py | |
parent | 5147e792d398258a5a87c3271ea89c1c4fd2f4d3 (diff) | |
download | ansible-3fba0062078cc04eabb460ec1eb13a4739235199.tar.gz |
Update bare exceptions to specify Exception.
This will keep us from accidentally catching program-exiting exceptions
like KeyboardInterupt and SystemExit.
Diffstat (limited to 'lib/ansible/modules/cloud/rackspace/rax_keypair.py')
-rw-r--r-- | lib/ansible/modules/cloud/rackspace/rax_keypair.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/cloud/rackspace/rax_keypair.py b/lib/ansible/modules/cloud/rackspace/rax_keypair.py index 455caf922d..a9d8ec56f4 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_keypair.py +++ b/lib/ansible/modules/cloud/rackspace/rax_keypair.py @@ -128,7 +128,7 @@ def rax_keypair(module, name, public_key, state): elif state == 'absent': try: keypair = cs.keypairs.find(name=name) - except: + except Exception: pass if keypair: |