Fix syntax errors

pull/146/head
Vinayak Mehta 2020-05-24 18:19:48 +05:30
parent 52b2a595b4
commit a22fa63c4e
No known key found for this signature in database
GPG Key ID: 2170CDB940114C1D
2 changed files with 3 additions and 3 deletions

View File

@ -441,10 +441,10 @@ class Stream(BaseParser):
if self.images: if self.images:
warnings.warn( warnings.warn(
f"{base_filename} is image-based, camelot only works on" f"{base_filename} is image-based, camelot only works on"
" text-based pages.") " text-based pages."
) )
else: else:
warnings.warn(f"No tables found on {base_filename}")) warnings.warn(f"No tables found on {base_filename}")
return [] return []
self._generate_table_bbox() self._generate_table_bbox()

View File

@ -85,7 +85,7 @@ def test_no_tables_found_warnings_suppressed():
tables = camelot.read_pdf(filename, suppress_stdout=True) tables = camelot.read_pdf(filename, suppress_stdout=True)
except Warning as e: except Warning as e:
warning_text = str(e) warning_text = str(e)
pytest.fail(f"Unexpected warning: {warning_text}" pytest.fail(f"Unexpected warning: {warning_text}")
def test_no_password(): def test_no_password():