1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Fix a customer issue in HEAD. We should catch OSError here instead of IOError

This commit is contained in:
Matthew Jones 2014-03-04 15:43:49 -05:00
parent 16d9af6945
commit d176466ccc

View File

@ -325,7 +325,7 @@ class BaseTask(Task):
if kwargs.get('private_data_file', ''): if kwargs.get('private_data_file', ''):
try: try:
os.remove(kwargs['private_data_file']) os.remove(kwargs['private_data_file'])
except IOError: except OSError:
pass pass
try: try:
stdout_handle.close() stdout_handle.close()