Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Sep 12, 2024
1 parent 5bf7d21 commit 8c7f444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdsstools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ async def __aenter__(self):

async def __aexit__(self, exc_type, exc_value, traceback):

Check warning on line 166 in src/sdsstools/utils.py

View check run for this annotation

Codecov / codecov/patch

src/sdsstools/utils.py#L166

Added line #L166 was not covered by tests
if exc_type is not None:
raise RuntimeError("An error occurred in the task group.")
return False

Check warning on line 168 in src/sdsstools/utils.py

View check run for this annotation

Codecov / codecov/patch

src/sdsstools/utils.py#L168

Added line #L168 was not covered by tests

await asyncio.gather(*self._tasks)

Check warning on line 170 in src/sdsstools/utils.py

View check run for this annotation

Codecov / codecov/patch

src/sdsstools/utils.py#L170

Added line #L170 was not covered by tests

def create_task(self, coro):

Check warning on line 172 in src/sdsstools/utils.py

View check run for this annotation

Codecov / codecov/patch

src/sdsstools/utils.py#L172

Added line #L172 was not covered by tests
"""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)

Check warning on line 176 in src/sdsstools/utils.py

View check run for this annotation

Codecov / codecov/patch

src/sdsstools/utils.py#L175-L176

Added lines #L175 - L176 were not covered by tests

return task

Check warning on line 178 in src/sdsstools/utils.py

View check run for this annotation

Codecov / codecov/patch

src/sdsstools/utils.py#L178

Added line #L178 was not covered by tests
Expand Down

0 comments on commit 8c7f444

Please sign in to comment.