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:
parent
16d9af6945
commit
d176466ccc
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user