Fix syntax errors
parent
52b2a595b4
commit
a22fa63c4e
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in New Issue