Added a TODO

This commit is contained in:
nocturn9x 2020-03-21 10:07:08 +00:00
parent 91b2cfb9da
commit 513d825c2b
1 changed files with 1 additions and 1 deletions

View File

@ -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