diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-05-30 14:57:43 +0300 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-05-30 14:57:43 +0300 |
commit | 42b93832f786c1db33db711c831eca89ee325442 (patch) | |
tree | db7d3f0ad8abb2b80c36741a006614ba9d69c2dc | |
parent | 6067fa02b8252c3e084a9d9b0cd122ec217e5ee7 (diff) | |
download | crocoite-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.
-rw-r--r-- | crocoite/controller.py | 3 |
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 () |