summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-05-30 14:57:43 +0300
committerLars-Dominik Braun <lars@6xq.net>2019-05-30 14:57:43 +0300
commit42b93832f786c1db33db711c831eca89ee325442 (patch)
treedb7d3f0ad8abb2b80c36741a006614ba9d69c2dc /crocoite
parent6067fa02b8252c3e084a9d9b0cd122ec217e5ee7 (diff)
downloadcrocoite-42b93832f786c1db33db711c831eca89ee325442.tar.gz
crocoite-42b93832f786c1db33db711c831eca89ee325442.tar.bz2
crocoite-42b93832f786c1db33db711c831eca89ee325442.zip
controller: Correctly re-raise exceptions
asyncio.gather returns the task’s results or exception, not task objects. Probably a copy&paste error.
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/controller.py3
1 files changed, 2 insertions, 1 deletions
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 ()