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")
try:
await self.wait()
except Exception as err:
except (Exception, trio.MultiError) as err:
log.warning(f"Nursery caught {err}, cancelling")
await self.cancel()
raise