[fix] use raw response with etree.parsefromstring - Unicode strings with encoding declaration are not supported

This commit is contained in:
Adam Tauber 2017-05-22 15:36:52 +02:00
parent 259735f309
commit 8db527c1d2
2 changed files with 7 additions and 7 deletions

View file

@ -85,7 +85,7 @@ def request(query, params):
def response(resp):
results = []
rss = etree.fromstring(resp.text)
rss = etree.fromstring(resp.content)
ns = rss.nsmap