reentrant cleanup

This commit is contained in:
ed 2022-08-02 20:56:05 +02:00
parent 9bfbf80a0e
commit 5384c2e0f5

View file

@ -1232,7 +1232,11 @@ class Up2k(object):
return tf, n
def _unspool(self, tf: tempfile.SpooledTemporaryFile[bytes]) -> None:
self.spools.remove(tf)
try:
self.spools.remove(tf)
except:
return
try:
tf.close()
except Exception as ex: