From bc47fe6f82383ecc6ed3e7bd4f1497d627f8d2ba Mon Sep 17 00:00:00 2001 From: Pahaz Blinov Date: Tue, 21 Apr 2015 19:13:11 +0500 Subject: [PATCH] Python 3 compatible `except` statment --- v2/ansible/executor/task_queue_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/ansible/executor/task_queue_manager.py b/v2/ansible/executor/task_queue_manager.py index a1fa01e186..a5c2920aec 100644 --- a/v2/ansible/executor/task_queue_manager.py +++ b/v2/ansible/executor/task_queue_manager.py @@ -92,7 +92,7 @@ class TaskQueueManager: if fileno is not None: try: new_stdin = os.fdopen(os.dup(fileno)) - except OSError, e: + except OSError: # couldn't dupe stdin, most likely because it's # not a valid file descriptor, so we just rely on # using the one that was passed in