From f3b4a74b77f31586075f007ab9d32ca91c3dd400 Mon Sep 17 00:00:00 2001 From: Gayathri <142381512+gaya3-zipstack@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:12:51 +0530 Subject: [PATCH] Fix usage of mime_type (#154) --- src/unstract/sdk/__init__.py | 2 +- src/unstract/sdk/tool/validator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unstract/sdk/__init__.py b/src/unstract/sdk/__init__.py index 9a64f41..6b09ee3 100644 --- a/src/unstract/sdk/__init__.py +++ b/src/unstract/sdk/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.56.0rc3" +__version__ = "0.56.0rc4" def get_sdk_version(): diff --git a/src/unstract/sdk/tool/validator.py b/src/unstract/sdk/tool/validator.py index deb6efa..28a5df9 100644 --- a/src/unstract/sdk/tool/validator.py +++ b/src/unstract/sdk/tool/validator.py @@ -210,7 +210,7 @@ def _validate_file_type(self, input_file: Path) -> None: allowed_mimes.append(EXT_MIME_MAP[ext]) if self.tool.workflow_filestorage: tool_fs = self.tool.workflow_filestorage - input_file_mime = tool_fs.mime_type(input_file=input_file) + input_file_mime = tool_fs.mime_type(input_file) else: input_file_mime = ToolUtils.get_file_mime_type(input_file=input_file) self.tool.stream_log(f"Input file MIME: {input_file_mime}")