diff --git a/src/kolibri2zim/scraper.py b/src/kolibri2zim/scraper.py index a75dcce..649704a 100644 --- a/src/kolibri2zim/scraper.py +++ b/src/kolibri2zim/scraper.py @@ -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 return wrapper