mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 11:40:01 +00:00
[fix] findthatmeme: hardening the response against KeyErrors (#5516)
This commit is contained in:
@@ -42,8 +42,8 @@ def response(resp):
|
||||
|
||||
results.append(
|
||||
{
|
||||
'url': item['source_page_url'],
|
||||
'title': item['source_site'],
|
||||
'url': item.get('source_page_url'),
|
||||
'title': item.get('source_site'),
|
||||
'img_src': img if item['type'] == 'IMAGE' else thumb,
|
||||
'filesize': humanize_bytes(item['meme_file_size']),
|
||||
'publishedDate': formatted_date,
|
||||
|
||||
Reference in New Issue
Block a user