Skip to content

Commit

Permalink
Fix usage of mime_type (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaya3-zipstack authored Jan 27, 2025
1 parent d08ae81 commit f3b4a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/unstract/sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.56.0rc3"
__version__ = "0.56.0rc4"


def get_sdk_version():
Expand Down
2 changes: 1 addition & 1 deletion src/unstract/sdk/tool/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit f3b4a74

Please sign in to comment.