Skip to content

Commit

Permalink
RuntimeError exceptions during assets processing must be fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Jan 10, 2025
1 parent 7336f52 commit ad8214d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scraper/src/mindtouch2zim/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ def process_asset(
content=asset_content.getvalue(),
)
break # file found and added
except RuntimeError:
# RuntimeError exceptions comes from the libzim usually and they must be
# fatal errors
raise
except KnownBadAssetFailedError as exc:
logger.debug(f"Ignoring known bad asset: {exc}")
except Exception as exc:
Expand Down

0 comments on commit ad8214d

Please sign in to comment.