Use Response.text instead of Response.content (#1822)

`content` returns a bytes object, `text` returns a string object. The latter can be splitted by the string `\n`, the former cannot, which leads to an Exception.
This commit is contained in:
Christoph Stahl 2021-03-20 22:26:33 +01:00 committed by GitHub
commit 6ccc4abc18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
status_code=1,
)
result = r.content
result = r.text
if not type(result) == list:
result = result.split('\n')
for line in result: