encoding for hal+json

This commit is contained in:
Markus-Rost 2020-08-02 23:55:35 +02:00
parent 36c6e379b2
commit 321e7ffedb

View file

@ -148,7 +148,7 @@ async def wiki_scanner():
logger.error("Exeption when fetching the wiki") logger.error("Exeption when fetching the wiki")
continue # ignore this wiki if it throws errors continue # ignore this wiki if it throws errors
try: try:
discussion_feed_resp = await feeds_response.json() discussion_feed_resp = await feeds_response.json(encoding="UTF-8")
if "title" in discussion_feed_resp: if "title" in discussion_feed_resp:
error = discussion_feed_resp["error"] error = discussion_feed_resp["error"]
if error == "site doesn't exists": if error == "site doesn't exists":