treat ShellError when call pdf2txt.py #495
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Environment:
textract (1.6.5)
argcomplete (1.10.3)
beautifulsoup4 (4.8.2)
chardet (3.0.4)
docx2txt (0.8)
extract-msg (0.28.7)
pdfminer.six (20191110)
python-pptx (0.6.23)
six (1.12.0)
SpeechRecognition (3.8.1)
xlrd (1.2.0)
pycryptodome (3.19.1)
sortedcontainers (2.4.0)
soupsieve (2.5)
imapclient (2.1.0)
olefile (0.47)
tzlocal (5.2)
compressed-rtf (1.0.6)
ebcdic (1.1.1)
lxml (5.0.0)
Pillow (10.0.0)
XlsxWriter (3.1.9)
When execute next code,
it failed with error message
self.run(...) of following code in textract/parsers/pdf_parser.py throws not OSError but ShellError, so SheelError is not treated . Just ShellError added in catch block.