mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
feat: Matching go-libp2p PeerStore implementation
This commit is contained in:
@ -52,7 +52,6 @@ from .exceptions import (
|
||||
LifecycleError,
|
||||
)
|
||||
from .typing import (
|
||||
EXC_INFO,
|
||||
AsyncFn,
|
||||
)
|
||||
|
||||
@ -232,7 +231,7 @@ class TrioManager(BaseManager):
|
||||
# Exceptions from any tasks spawned by our service will be
|
||||
# caught by trio and raised here, so we store them to report
|
||||
# together with any others we have already captured.
|
||||
self._errors.append(cast(EXC_INFO, sys.exc_info()))
|
||||
self._errors.append(sys.exc_info())
|
||||
finally:
|
||||
system_nursery.cancel_scope.cancel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user