Skip to content

Commit 4880471

Browse files
authored
Apply suggestion from @cclauss
1 parent 7697978 commit 4880471

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎conversions/excel_title_to_column.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def excel_title_to_column(column_title: str) -> int:
2626
ValueError: Column title must contain only alphabetic characters.
2727
"""
2828
if not column_title or not column_title.isalpha():
29-
raise ValueError("Column title must contain only alphabetic characters.")
29+
msg = "Column title must contain only alphabetic characters."
30+
raise ValueError(msg)
3031

3132
column_title = column_title.upper()
3233
answer = 0

0 commit comments

Comments
 (0)