From 0ba8bc3eb9caaa9fe7319fd694ef8d64263b9472 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Thu, 13 Oct 2022 21:00:49 -0700 Subject: [PATCH] Bugfix for bare {filepath} template --- osxphotos/phototemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osxphotos/phototemplate.py b/osxphotos/phototemplate.py index dee8b324..14ed42e4 100644 --- a/osxphotos/phototemplate.py +++ b/osxphotos/phototemplate.py @@ -1516,7 +1516,7 @@ def _get_pathlib_value(field, value, quote): parts = field.split(".") if len(parts) == 1: - return shlex.quote(value) if quote else value + return shlex.quote(str(value)) if quote else str(value) path = pathlib.Path(value) for attribute in parts[1:]: