fix(cache): harden metadata defaults

This commit is contained in:
pixelpaws
2025-10-18 21:19:09 +08:00
parent 4e4ea85cc3
commit e4d58d0f60
3 changed files with 87 additions and 9 deletions

View File

@@ -187,6 +187,9 @@ class SearchStrategy:
return results
def _matches(self, candidate: str, search_term: str, search_lower: str, fuzzy: bool) -> bool:
if not isinstance(candidate, str):
candidate = "" if candidate is None else str(candidate)
if not candidate:
return False