Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32f78772 authored by Adam Tauber's avatar Adam Tauber
Browse files

[fix] resolve flickr_noapi encoding issues

parent 4ca0d8cb
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -117,14 +117,10 @@ def response(resp):
            'img_format': img_format,
            'template': 'images.html'
        }
        try:
            result['author'] = author
            result['title'] = title
            result['content'] = content
        except:
            result['author'] = ''
            result['title'] = ''
            result['content'] = ''
        result['author'] = author.encode('utf-8', 'ignore').decode('utf-8')
        result['source'] = source.encode('utf-8', 'ignore').decode('utf-8')
        result['title'] = title.encode('utf-8', 'ignore').decode('utf-8')
        result['content'] = content.encode('utf-8', 'ignore').decode('utf-8')
        results.append(result)

    return results