Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

improve handling of exceptions for googletrans #244

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Conversation

iulusoy
Copy link
Member

@iulusoy iulusoy commented Feb 5, 2025

  • truncate text for googletrans to 5000 characters. At the moment, this is set globally, so the original text is truncated in the dict. However, one could also truncate a temporary variable and keep the original text at its original length (could result in a possibly longer text in the original than in the translation). This closes Simple text translation (from csv file) breaking off #240
  • skip translation if an error occurs, to avoid interruptions of the execution. This closes Text detector- move on after error #237

Copy link

sonarqubecloud bot commented Feb 5, 2025

@iulusoy iulusoy merged commit 3cf1b54 into main Feb 5, 2025
6 checks passed
@iulusoy iulusoy deleted the truncate-text branch February 5, 2025 12:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simple text translation (from csv file) breaking off Text detector- move on after error
1 participant