Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 84692c8

Browse files
committed
Rebrand Image based error message
1 parent 2f72d94 commit 84692c8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

camelot/parsers/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def _document_has_no_text(self):
114114
if self.images:
115115
warnings.warn(
116116
"{rootname} is image-based, "
117-
"camelot only works on text-based pages.".format(rootname=rootname)
117+
"pypdf_table_extraction only works on text-based pages.".format(
118+
rootname=rootname
119+
)
118120
)
119121
else:
120122
warnings.warn(f"No tables found on {rootname}")

tests/test_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_image_warning(testdir):
9191
camelot.read_pdf(filename)
9292
assert (
9393
str(e.value)
94-
== "page-1 is image-based, camelot only works on text-based pages."
94+
== "page-1 is image-based, pypdf_table_extraction only works on text-based pages."
9595
)
9696

9797

0 commit comments

Comments
 (0)