Skip to content
Snippets Groups Projects
Commit 7d4e51cd authored by I. Nüske's avatar I. Nüske
Browse files

STY: Style fixes

parent 3b55e553
No related branches found
No related tags found
2 merge requests!128MNT: Added a warning when column metadata is not configured, and a better...,!120XLSX-Konverter: Bessere Fehlermeldung bei inkorrektem Typ in Spalte, zusätzlicher Spalte
Pipeline #57497 passed
......@@ -28,7 +28,7 @@ import sys
from functools import reduce
from operator import getitem
from types import SimpleNamespace
from typing import Any, BinaryIO, Callable, TextIO, Union
from typing import Any, BinaryIO, Callable, TextIO, Union, Optional
from warnings import warn
import jsonschema
......@@ -430,7 +430,7 @@ class XLSXConverter:
try:
subschema = self._get_subschema(path)
except KeyError as e:
raise KeyError("There is no entry in the schema that corresponds to this column.")
raise KeyError("There is no entry in the schema that corresponds to this column.") from e
# Array handling only if schema says it's an array.
if subschema.get("type") == "array":
array_type = subschema["items"]["type"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment