Merge pull request #2930 from audiodude/funcparser-search-f-string

Remove f-string with unbound variable in funcparser
This commit is contained in:
Griatch 2022-10-13 09:12:01 +02:00 committed by GitHub
commit c7a2b8b37b

View file

@ -1153,7 +1153,7 @@ def funcparser_callable_search(*args, caller=None, access="control", **kwargs):
if not targets:
if return_list:
return []
raise ParsingError(f"$search: Query '{query}' gave no matches.")
raise ParsingError(f"$search: Query '{args[0]}' gave no matches.")
if len(targets) > 1 and not return_list:
raise ParsingError(