Skip to content

Commit f31d85e

Browse files
KareemMuslehКарим
andauthored
fix (#1530)
Co-authored-by: Карим <kareemm@yandex-team.ru>
1 parent 9f34cdc commit f31d85e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

torchdata/nodes/map.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,10 @@ def shutdown(self):
397397
self._it._shutdown(cancel_futures=True)
398398

399399
def __del__(self):
400-
self.shutdown()
400+
try:
401+
self.shutdown()
402+
except Exception:
403+
pass
401404

402405

403406
class ParallelMapper(BaseNode[T]):

0 commit comments

Comments
 (0)