From ef79027b06b3f7dda097cd9418a28964997449cf Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Wed, 22 Nov 2017 09:52:22 +0100 Subject: [PATCH] misc.py: Make process cleanup more robust Eliminate a far chance of an exception thrown during process cleanup. Signed-off-by: Jan Lindemann --- tools/python/jwutils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/jwutils/misc.py b/tools/python/jwutils/misc.py index f6b991a..9ad44e4 100644 --- a/tools/python/jwutils/misc.py +++ b/tools/python/jwutils/misc.py @@ -6,7 +6,7 @@ _tmpfiles = set() def _cleanup(): for f in _tmpfiles: - os.unlink(f) + silentremove(f) def silentremove(filename): #export try: