Skip to content

Commit 129346d

Browse files
Update src/main.py
Co-authored-by: Copilot <[email protected]>
1 parent e6395dc commit 129346d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _patched_pipe_del(self):
106106
def _patched_subprocess_del(self):
107107
try:
108108
# Check if the event loop is closed or finalizing
109-
if hasattr(self, '_loop') and (self._loop.is_closed() or sys.is_finalizing()):
109+
if hasattr(self, '_loop') and self._loop is not None and (self._loop.is_closed() or sys.is_finalizing()):
110110
# Skip the original __del__ which would trigger the error
111111
return
112112

0 commit comments

Comments
 (0)