Merge python EnvironmentError, IOError and WindowsError into OSError.

This commit is contained in:
Marcel Admiraal 2020-09-02 15:58:07 +01:00
parent 39228830ce
commit cba4a93a34
3 changed files with 8 additions and 8 deletions

View file

@ -55,7 +55,7 @@ def run_in_subprocess(builder_function):
finally:
try:
os.remove(json_path)
except (OSError, IOError) as e:
except OSError as e:
# Do not fail the entire build if it cannot delete a temporary file
print(
"WARNING: Could not delete temporary file: path=%r; [%s] %s" % (json_path, e.__class__.__name__, e)