Fix: MultiError isn't an Exception...

improved_errors
Tyler Goodlet 2018-11-19 14:16:09 -05:00
parent 1bb37dbddf
commit 82fcf025cc
1 changed files with 1 additions and 1 deletions

View File

@ -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