diff --git a/osxphotos/phototemplate.py b/osxphotos/phototemplate.py index 4c8de213..26245aef 100644 --- a/osxphotos/phototemplate.py +++ b/osxphotos/phototemplate.py @@ -1153,7 +1153,7 @@ def comparison_test(test_function): ) except ValueError as e: raise SyntaxError( - f"comparison operators may only be used with values that can be converted to numbers: {vals} {conditional_value}" + f"comparison operators may only be used with values that can be converted to numbers: {value} {conditional_value}" ) from e predicate_is_true = False @@ -1682,7 +1682,7 @@ def format_date_field(dt: datetime.datetime, field: str, args: List[str]) -> str raise ValueError(f"Unhandled template value: {field}") from e -def get_place_value(photo: "PhotoInfo", field: str): +def get_place_value(photo: "PhotoInfo", field: str): # noqa: F821 """Get the value of a 'place' field by attribute Args: