diff --git a/apps/common/handle/impl/table/xls_parse_table_handle.py b/apps/common/handle/impl/table/xls_parse_table_handle.py index 5b7f594a1..5609e3e88 100644 --- a/apps/common/handle/impl/table/xls_parse_table_handle.py +++ b/apps/common/handle/impl/table/xls_parse_table_handle.py @@ -68,6 +68,9 @@ class XlsSplitHandle(BaseParseTableHandle): sheets = workbook.sheets() md_tables = '' for sheet in sheets: + # 过滤空白的sheet + if sheet.nrows == 0 or sheet.ncols == 0: + continue # 获取表头和内容 headers = sheet.row_values(0)