From dbf7df443922a9b80583ac483407cecc783a4424 Mon Sep 17 00:00:00 2001 From: nitzmahone Date: Tue, 23 Aug 2016 17:00:14 -0700 Subject: [PATCH] fix pycharm debugger issue on missing fileno Under pycharm debugger, stdin has no fileno, but throws AttributeError instead of ValueError. Account for both. --- lib/ansible/executor/process/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/process/worker.py b/lib/ansible/executor/process/worker.py index aeab3e75a7..7119d3c8aa 100644 --- a/lib/ansible/executor/process/worker.py +++ b/lib/ansible/executor/process/worker.py @@ -89,7 +89,7 @@ class WorkerProcess(multiprocessing.Process): # not a valid file descriptor, so we just rely on # using the one that was passed in pass - except ValueError: + except AttributeError, ValueError: # couldn't get stdin's fileno, so we just carry on pass