Change suppress_warnings to verbose
This commit is contained in:
@@ -345,9 +345,10 @@ class Lattice(BaseParser):
|
||||
|
||||
return table
|
||||
|
||||
def extract_tables(self, filename):
|
||||
def extract_tables(self, filename, verbose=True):
|
||||
self._generate_layout(filename)
|
||||
logger.info('Processing {}'.format(os.path.basename(self.rootname)))
|
||||
if verbose:
|
||||
logger.info('Processing {}'.format(os.path.basename(self.rootname)))
|
||||
|
||||
if not self.horizontal_text:
|
||||
warnings.warn("No tables found on {}".format(
|
||||
|
||||
@@ -384,9 +384,10 @@ class Stream(BaseParser):
|
||||
|
||||
return table
|
||||
|
||||
def extract_tables(self, filename):
|
||||
def extract_tables(self, filename, verbose=True):
|
||||
self._generate_layout(filename)
|
||||
logger.info('Processing {}'.format(os.path.basename(self.rootname)))
|
||||
if verbose:
|
||||
logger.info('Processing {}'.format(os.path.basename(self.rootname)))
|
||||
|
||||
if not self.horizontal_text:
|
||||
warnings.warn("No tables found on {}".format(
|
||||
|
||||
Reference in New Issue
Block a user