mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 01:52:56 +01:00
misc.py: Make process cleanup more robust
Eliminate a far chance of an exception thrown during process cleanup. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
3d93d534db
commit
ef79027b06
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ _tmpfiles = set()
|
|||
|
||||
def _cleanup():
|
||||
for f in _tmpfiles:
|
||||
os.unlink(f)
|
||||
silentremove(f)
|
||||
|
||||
def silentremove(filename): #export
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue