From 422e1785979c4715afe951aca8657766eaa8abca Mon Sep 17 00:00:00 2001 From: redcican Date: Tue, 5 Apr 2022 20:43:28 +0200 Subject: [PATCH] Update services.py change "typo" utf8- to utf-8 --- src/utils/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/services.py b/src/utils/services.py index bff4438..2aa326c 100644 --- a/src/utils/services.py +++ b/src/utils/services.py @@ -23,7 +23,7 @@ def post(data, target_path, times=1): # headers=headers ) - response_content = json.loads(response.content, encoding="utf8-") + response_content = json.loads(response.content, encoding="utf-8") if response_content.get('code') != 200: time.sleep(3) @@ -60,7 +60,7 @@ def get(target_path, params={}, times=1): # headers=headers ) - response_content = json.loads(response.content, encoding="utf8-") + response_content = json.loads(response.content, encoding="utf-8") if response_content.get('code') == 200: return response_content.get("result")