Skip to content

Commit e6fc01d

Browse files
committed
check for empty tab name
1 parent e71a82d commit e6fc01d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python-lib/xlsx_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,5 +373,5 @@ def add_style_if_not_exist(style, list):
373373

374374

375375
def assert_valid_sheet_name(sheet_name):
376-
if len(sheet_name) > EXCEL_MAX_LEN_SHEET_NAME:
376+
if sheet_name is not None and len(sheet_name) > EXCEL_MAX_LEN_SHEET_NAME:
377377
raise Exception("The sheet name '{}' is too long. Maximum is {} characters".format(sheet_name, EXCEL_MAX_LEN_SHEET_NAME))

0 commit comments

Comments
 (0)