Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions api_app/analyzers_manager/file_analyzers/pdf_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ def run(self):
raise AnalyzerRunException("both peepdf and pdfid failed")

# pivot uris in the pdf only if we have one page
if "reports" in self.results["pdfid"] and isinstance(
self.results["pdfid"]["reports"], list
if (
"reports" in self.results["pdfid"]
and isinstance(self.results["pdfid"]["reports"], list)
and peepdf_success
):
for elem in self.results["pdfid"]["reports"]:
if "/Page" in elem and elem["/Page"] == 1:
Expand Down