Skip to content

Commit

Permalink
feat(pdf): raise error if document is null after opening
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Oct 29, 2023
1 parent ad707da commit 93af706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monopoly/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def open(self, brute_force_config: BruteForceConfig = None):
"Unable to unlock PDF password using static string and mask"
)

return None
raise RuntimeError("Failed to open document")

def get_pages(self, brute_force_config=None) -> list[PdfPage]:
logger.info("Extracting text from PDF")
Expand Down

0 comments on commit 93af706

Please sign in to comment.