-
Notifications
You must be signed in to change notification settings - Fork 8.2k
fix: improve error handling for missing OCR dependencies #9753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
77a43d1
0b71a06
ff2bf3a
1959fc6
9b2beff
b7f023b
31637a2
0f21906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -162,6 +162,7 @@ def convert_to_string(self) -> str | Generator[Any, None, None]: | |
| """Convert input data to string with proper error handling.""" | ||
| self._validate_input() | ||
| if isinstance(self.input_value, list): | ||
| self.clean_data = self.clean_data if hasattr(self, "clean_data") else False | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this intentional?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can just do |
||
| return "\n".join([safe_convert(item, clean_data=self.clean_data) for item in self.input_value]) | ||
| if isinstance(self.input_value, Generator): | ||
| return self.input_value | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.