Skip to content

Commit

Permalink
Remove list comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Feb 29, 2024
1 parent f8102db commit a29fb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kolibri2zim/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ def run(self):
self.videos_executor.shutdown()

nb_done_with_failure = sum(
[1 if future.exception() else 0 for future in futures.done]
1 if future.exception() else 0 for future in futures.done
)
succeeded = not futures.not_done and nb_done_with_failure == 0

Check warning on line 888 in src/kolibri2zim/scraper.py

View check run for this annotation

Codecov / codecov/patch

src/kolibri2zim/scraper.py#L888

Added line #L888 was not covered by tests

Expand Down

0 comments on commit a29fb68

Please sign in to comment.