diff --git a/lib/ansible/modules/utilities/logic/wait_for.py b/lib/ansible/modules/utilities/logic/wait_for.py index 8b0b980c9ac..fdf9064c2ce 100644 --- a/lib/ansible/modules/utilities/logic/wait_for.py +++ b/lib/ansible/modules/utilities/logic/wait_for.py @@ -492,8 +492,6 @@ def main(): break except IOError: break - except OSError: - break elif port: try: s = _create_connection(host, port, connect_timeout)