From d176466cccb5ac611d1caf2dcaa92794e1cd3605 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 4 Mar 2014 15:43:49 -0500 Subject: [PATCH] Fix a customer issue in HEAD. We should catch OSError here instead of IOError --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index f6c8c83edf..7abf10af28 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -325,7 +325,7 @@ class BaseTask(Task): if kwargs.get('private_data_file', ''): try: os.remove(kwargs['private_data_file']) - except IOError: + except OSError: pass try: stdout_handle.close()