From 42b93832f786c1db33db711c831eca89ee325442 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 30 May 2019 14:57:43 +0300 Subject: controller: Correctly re-raise exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit asyncio.gather returns the task’s results or exception, not task objects. Probably a copy&paste error. --- crocoite/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crocoite/controller.py') diff --git a/crocoite/controller.py b/crocoite/controller.py index 61153ca..d84878a 100644 --- a/crocoite/controller.py +++ b/crocoite/controller.py @@ -435,7 +435,8 @@ class RecursiveController: return_exceptions=True) # propagate exceptions for r in done: - r.result () + if isinstance (r, Exception): + raise r self.running = set () log () -- cgit v1.2.3