From cdb5be945eaaac1d0d4294c127f7a2c7b926d563 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sun, 15 Dec 2024 09:18:47 -0600 Subject: [PATCH] Hotfix for #1757 --- osxphotos/image_file_utils.py | 2 +- requirements.txt | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osxphotos/image_file_utils.py b/osxphotos/image_file_utils.py index ca88c74f..4aea0d66 100644 --- a/osxphotos/image_file_utils.py +++ b/osxphotos/image_file_utils.py @@ -42,7 +42,7 @@ def file_conforms_to_uti(path: str | os.PathLike, uti: str) -> bool: """Return True if file at path conforms to UTI""" - return conforms_to_uti(uti_for_path(path), uti) + return conforms_to_uti(uti_for_path(path) or "", uti) @cache diff --git a/requirements.txt b/requirements.txt index 91a78d95..84540e5c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -45,7 +45,7 @@ tenacity>=8.0.1,<9.0.0 textx>=4.0.1,<5.0.0 toml>=0.10.2,<0.11.0 tzdata -utitools>=0.2.0 +utitools>=0.3.0 wrapt>=1.14.1,<2.0.0 wurlitzer>=3.0.2,<4.0.0 xdg-base-dirs>=6.0.0; python_version >= '3.10' diff --git a/setup.py b/setup.py index fbb326d0..8f34eef8 100755 --- a/setup.py +++ b/setup.py @@ -124,7 +124,7 @@ "textx>=4.0.1,<5.0.0", "toml>=0.10.2,<0.11.0", "tzdata", - "utitools>=0.2.0", + "utitools>=0.3.0", "wrapt>=1.14.1,<2.0.0", "wurlitzer>=3.0.2,<4.0.0", "xdg==5.1.1; python_version <= '3.9'",