mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Ignore warning when can't delete temporary file
This commit is contained in:
@ -81,7 +81,6 @@ class InoToCPPConverter(object):
|
||||
tmp_path = mkstemp()[1]
|
||||
with open(tmp_path, "w") as fp:
|
||||
fp.write(contents)
|
||||
fp.close()
|
||||
self.env.Execute(
|
||||
self.env.VerboseAction(
|
||||
'$CXX -o "{0}" -x c++ -fpreprocessed -dD -E "{1}"'.format(
|
||||
@ -185,9 +184,7 @@ def _delete_file(path):
|
||||
if isfile(path):
|
||||
remove(path)
|
||||
except: # pylint: disable=bare-except
|
||||
if path and isfile(path):
|
||||
sys.stderr.write("Warning: Could not remove temporary file '%s'. "
|
||||
"Please remove it manually.\n" % path)
|
||||
pass
|
||||
|
||||
|
||||
def DumpIDEData(env):
|
||||
|
Reference in New Issue
Block a user