diff --git a/camelot/parsers/stream.py b/camelot/parsers/stream.py index ee75c8f..3749028 100644 --- a/camelot/parsers/stream.py +++ b/camelot/parsers/stream.py @@ -441,10 +441,10 @@ class Stream(BaseParser): if self.images: warnings.warn( f"{base_filename} is image-based, camelot only works on" - " text-based pages.") + " text-based pages." ) else: - warnings.warn(f"No tables found on {base_filename}")) + warnings.warn(f"No tables found on {base_filename}") return [] self._generate_table_bbox() diff --git a/tests/test_errors.py b/tests/test_errors.py index 6591b02..2849110 100755 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -85,7 +85,7 @@ def test_no_tables_found_warnings_suppressed(): tables = camelot.read_pdf(filename, suppress_stdout=True) except Warning as e: warning_text = str(e) - pytest.fail(f"Unexpected warning: {warning_text}" + pytest.fail(f"Unexpected warning: {warning_text}") def test_no_password():