mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-27 00:19:51 +00:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1991
Author: @Shaik-Mudassir2001
Created: 1/7/2026
Status: ❌ Closed
Base:
master← Head:fix-issue-1990📝 Commits (1)
ab08bffrust: handle I/O errors in process_word_file (fixes #1990)📊 Changes
2 files changed (+11 additions, -1 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/rust/src/parser.rs(+10 -1)📄 Description
[FIX] Fix #1990: Handle I/O errors in Rust word file parser
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Description
This Pull Request addresses a stability issue in the Rust-based parser where the application would panic and terminate if it encountered a reading error in an external word file (such as a capitalization or profanity list).
Changes:
process_word_fileinsrc/rust/src/parser.rs: Replaced the.unwrap()call onreader.lines()with an explicitmatchstatement.Err, prints a descriptive message tostderrincluding the line number and filename, and usescontinueto proceed with the rest of the file.This ensures that a single corrupted line or an I/O hiccup does not interrupt the entire extraction process, making the tool significantly more robust for automated workflows.
Related Issue
Fixes #1990
Checklist
cargo check.docs/CHANGES.TXTwith a brief description of the fix.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.