Skip to content

Commit

Permalink
Rename exception variable
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Feb 29, 2024
1 parent eccb4b3 commit 18c7034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kolibri2zim/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def wrapper(self, item):
try:
node_id, kind = item
return func(self, item)
except Exception as ex:
raise RuntimeError(f"Failed to process {kind} node {node_id}") from ex
except Exception as exc:
raise RuntimeError(f"Failed to process {kind} node {node_id}") from exc

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

View check run for this annotation

Codecov / codecov/patch

src/kolibri2zim/scraper.py#L96-L100

Added lines #L96 - L100 were not covered by tests

return wrapper

Expand Down

0 comments on commit 18c7034

Please sign in to comment.