From 7d4e51cdd74552cb54c0ca557dc0aea599d1401b Mon Sep 17 00:00:00 2001 From: "i.nueske" <i.nueske@indiscale.com> Date: Tue, 12 Nov 2024 11:34:53 +0100 Subject: [PATCH] STY: Style fixes --- src/caosadvancedtools/table_json_conversion/convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/caosadvancedtools/table_json_conversion/convert.py b/src/caosadvancedtools/table_json_conversion/convert.py index 84e3b954..1f87bc7f 100644 --- a/src/caosadvancedtools/table_json_conversion/convert.py +++ b/src/caosadvancedtools/table_json_conversion/convert.py @@ -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"] -- GitLab