diff --git a/copyparty/up2k.py b/copyparty/up2k.py index ebb83410..c3b19ae0 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -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: