Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2018-09-08 03:59:46 +0300
committerToshio Kuratomi <a.badger@gmail.com>2018-12-17 02:03:19 +0300
commit3fba0062078cc04eabb460ec1eb13a4739235199 (patch)
tree9c09103ce103a90f97ccf3736ca6c2502d7860f8 /bin
parent5147e792d398258a5a87c3271ea89c1c4fd2f4d3 (diff)
Update bare exceptions to specify Exception.
This will keep us from accidentally catching program-exiting exceptions like KeyboardInterupt and SystemExit.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible-connection2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection
index 59e15602bbe..ce03429703f 100755
--- a/bin/ansible-connection
+++ b/bin/ansible-connection
@@ -185,7 +185,7 @@ class ConnectionProcess(object):
self.sock.close()
if self.connection:
self.connection.close()
- except:
+ except Exception:
pass
finally:
if os.path.exists(self.socket_path):