Update search_metadata.py
Fix TypeError when metadata provider returns None
This commit is contained in:
committed by
Ozzie Isaacs
parent
5e48a64b15
commit
6157f5027c
@@ -135,5 +135,5 @@ def metadata_search():
|
||||
if active.get(c.__id__, True)
|
||||
}
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user