Updated Request.py (#292)

Fixed encoding error
master
GoodGuyKali 2020-03-18 10:55:49 +00:00 committed by GitHub
parent 134c1f6f68
commit 46d6464f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ def _log_response_body(res):
import pathlib
file = tempfile.mktemp(dir=temp_dir)
logger.debug(file)
with open(file, 'w') as f:
with open(file, 'w', encoding="utf-8") as f:
f.write(res.text)
data_file = temp_dir + '/data.json'