From 513d825c2b424b7f3a6fa1780875ca8c05f32785 Mon Sep 17 00:00:00 2001 From: nocturn9x Date: Sat, 21 Mar 2020 10:07:08 +0000 Subject: [PATCH] Added a TODO --- giambio/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giambio/core.py b/giambio/core.py index 469d02d..f1a2d7e 100644 --- a/giambio/core.py +++ b/giambio/core.py @@ -53,7 +53,7 @@ class EventLoop: self.to_run.extend(self.joined.pop(self.running, ())) # Reschedules the parent task except CancelledError: self.running.cancelled = True # Update the coroutine status - raise + raise # TODO: Fix this, removing this raises RuntimeError: cannot reuse already awaited coroutine except Exception as has_raised: self.to_run.extend(self.joined.pop(self.running, ())) # Reschedules the parent task if self.running.joined: # Let the join function handle the hassle of propagating the error