mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
reentrant cleanup
This commit is contained in:
parent
9bfbf80a0e
commit
5384c2e0f5
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue