forked from goodboy/tractor
Fix: MultiError isn't an Exception...
parent
1bb37dbddf
commit
82fcf025cc
|
@ -334,7 +334,7 @@ class ActorNursery:
|
||||||
log.debug(f"Waiting on subactors {self._children} to complete")
|
log.debug(f"Waiting on subactors {self._children} to complete")
|
||||||
try:
|
try:
|
||||||
await self.wait()
|
await self.wait()
|
||||||
except Exception as err:
|
except (Exception, trio.MultiError) as err:
|
||||||
log.warning(f"Nursery caught {err}, cancelling")
|
log.warning(f"Nursery caught {err}, cancelling")
|
||||||
await self.cancel()
|
await self.cancel()
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue