Change suppress_warnings to verbose
This commit is contained in:
1 parent
50780e24f8
commit
e50f9c8847
8 files changed
+23
-18
No files matched your search
@@ -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