Skip to content

Commit 933f70c

Browse files
committed
catch specific exceptions
1 parent cf3d546 commit 933f70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/multiprocessing/resource_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def __del__(self):
218218
# see https://github.com/python/cpython/issues/88887
219219
try:
220220
self._stop()
221-
except:
221+
except (OSError, TypeError, AttributeError) as e:
222222
pass
223223

224224

0 commit comments

Comments
 (0)