From 8c7f444862114ea3fc0974423afa8cac95a97da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Thu, 12 Sep 2024 09:54:34 -0700 Subject: [PATCH] Fix issues --- src/sdsstools/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdsstools/utils.py b/src/sdsstools/utils.py index 55bd75d..c142fab 100644 --- a/src/sdsstools/utils.py +++ b/src/sdsstools/utils.py @@ -165,14 +165,14 @@ async def __aenter__(self): async def __aexit__(self, exc_type, exc_value, traceback): if exc_type is not None: - raise RuntimeError("An error occurred in the task group.") + return False await asyncio.gather(*self._tasks) def create_task(self, coro): """Creates a task and appends it to the list of tasks.""" - task = self.create_task(coro) + task = asyncio.create_task(coro) self._tasks.append(task) return task