Skip to content

Commit

Permalink
Merge pull request #10 from dhrim/master
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing authored Dec 4, 2024
2 parents 5b55f5c + 8d51c54 commit e9349b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textract/parsers/pdf_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def extract_pdfminer(self, filename, **kwargs):
pdf2txt_path = which("pdf2txt.py")
try:
stdout, _ = self.run(['pdf2txt.py', filename])
except OSError:
except (OSError, ShellError):
try:
stdout, _ = self.run(['python3',pdf2txt_path, filename])
except ShellError:
Expand Down

0 comments on commit e9349b3

Please sign in to comment.