Update search_metadata.py

Fix TypeError when metadata provider returns None
This commit is contained in:
jarynclouatre
2026-03-01 00:34:56 -06:00
committed by Ozzie Isaacs
parent 5e48a64b15
commit 6157f5027c

View File

@@ -135,5 +135,5 @@ def metadata_search():
if active.get(c.__id__, True) if active.get(c.__id__, True)
} }
for future in concurrent.futures.as_completed(meta): for future in concurrent.futures.as_completed(meta):
data.extend([asdict(x) for x in future.result() if x]) data.extend([asdict(x) for x in (future.result() or []) if x])
return make_response(jsonify(data)) return make_response(jsonify(data))