Skip to content

Commit 3692664

Browse files
committed
Rename error message variables
1 parent 0e4d77a commit 3692664

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sphinx_notion/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,17 +472,17 @@ def _(
472472
table_structure = _extract_table_structure(node=node)
473473

474474
if len(table_structure.header_rows) > 1:
475-
table_no_titles_mgs = (
475+
table_multiple_header_rows_msg = (
476476
"Tables with multiple header rows are not supported."
477477
)
478-
raise ValueError(table_no_titles_mgs)
478+
raise ValueError(table_multiple_header_rows_msg)
479479

480480
if table_structure.num_stub_columns > 1:
481-
table_no_titles_mgs = (
481+
table_more_than_one_stub_column_msg = (
482482
f"Tables with more than 1 stub column are not supported. "
483483
f"Found {table_structure.num_stub_columns} stub columns."
484484
)
485-
raise ValueError(table_no_titles_mgs)
485+
raise ValueError(table_more_than_one_stub_column_msg)
486486

487487
rows = [*table_structure.header_rows, *table_structure.body_rows]
488488
table = UnoTable(

0 commit comments

Comments
 (0)