Merge pull request #2930 from audiodude/funcparser-search-f-string
Remove f-string with unbound variable in funcparser
This commit is contained in:
commit
c7a2b8b37b
1 changed files with 1 additions and 1 deletions
|
|
@ -1153,7 +1153,7 @@ def funcparser_callable_search(*args, caller=None, access="control", **kwargs):
|
||||||
if not targets:
|
if not targets:
|
||||||
if return_list:
|
if return_list:
|
||||||
return []
|
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:
|
if len(targets) > 1 and not return_list:
|
||||||
raise ParsingError(
|
raise ParsingError(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue