Skip to content
Snippets Groups Projects

XLSX-Konverter: Bessere Fehlermeldung bei inkorrektem Typ in Spalte, zusätzlicher Spalte

Merged I. Nüske requested to merge f-xlsx-converter-error-messages into dev
All threads resolved!
@@ -45,6 +45,7 @@ def _strict_bool(value: Any) -> bool:
return value
raise TypeError(f"Not a good boolean: {repr(value)}")
def _column_id_to_chars(num):
"""Converts a column id (zero based) to the corresponding string
representation, e.g. 0 -> 'A', 97 -> 'CT'"""
@@ -52,6 +53,7 @@ def _column_id_to_chars(num):
return ""
return _column_id_to_chars(int(num / 26) - 1) + chr(int(num % 26) + 65)
def _format_exception_table(exceptions: list(tuple), worksheet_title: str,
column_names: Optional[dict, list] = None,
max_line_length: Optional[int] = 120) -> str:
Loading