浏览代码

[fix] hadle missing title

Adam Tauber 10 年前
父节点
当前提交
e1856426e2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      searx/engines/flickr-noapi.py

+ 1
- 1
searx/engines/flickr-noapi.py 查看文件

@@ -73,7 +73,7 @@ def response(resp):
73 73
 
74 74
         url = build_flickr_url(photo['owner']['id'], photo['id'])
75 75
 
76
-        title = photo['title']
76
+        title = photo.get('title', '')
77 77
 
78 78
         content = '<span class="photo-author">' +\
79 79
                   photo['owner']['username'] +\