Skip to content

Commit b540713

Browse files
committed
tabular: log col and row count for too big xlsx files
1 parent 6e587e6 commit b540713

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mfr/extensions/tabular/libs/xlrd_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def xlsx_xlrd(fp):
1919

2020
for sheet in wb.sheets():
2121
if sheet.ncols > max_size or sheet.nrows > max_size:
22-
raise TableTooBigError('Table is too large to render.', '.xlsx')
22+
raise TableTooBigError('Table is too large to render.', '.xlsx',
23+
nbr_cols=sheet.ncols, nbr_rows=sheet.nrows)
2324

2425
if sheet.ncols < 1 or sheet.nrows < 1:
2526
sheets[sheet.name] = ([], [])

0 commit comments

Comments
 (0)