There was an error while loading. Please reload this page.
1 parent 7697978 commit 4880471Copy full SHA for 4880471
1 file changed
conversions/excel_title_to_column.py
@@ -26,7 +26,8 @@ def excel_title_to_column(column_title: str) -> int:
26
ValueError: Column title must contain only alphabetic characters.
27
"""
28
if not column_title or not column_title.isalpha():
29
- raise ValueError("Column title must contain only alphabetic characters.")
+ msg = "Column title must contain only alphabetic characters."
30
+ raise ValueError(msg)
31
32
column_title = column_title.upper()
33
answer = 0
0 commit comments