Parcourir la source

[fix] hadle missing title

Adam Tauber il y a 10 ans
Parent
révision
e1856426e2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      searx/engines/flickr-noapi.py

+ 1
- 1
searx/engines/flickr-noapi.py Voir le fichier

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