refactor after rebase

This commit is contained in:
lla-dane
2025-06-18 14:22:21 +05:30
parent f3d8cbf968
commit 5de458482c
5 changed files with 56 additions and 70 deletions

View File

@ -18,6 +18,7 @@ import sys
from typing import (
Any,
TypeVar,
cast,
)
import uuid
@ -360,7 +361,7 @@ class BaseManager(InternalManagerAPI):
# Only show stacktrace if this is **not** a DaemonTaskExit error
exc_info=not isinstance(err, DaemonTaskExit),
)
self._errors.append(sys.exc_info())
self._errors.append(cast(EXC_INFO, sys.exc_info()))
self.cancel()
else:
if task.parent is None: