mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-17 09:14:52 +02:00
Fix running tests with Python 3.9
This commit is contained in:
parent
acc5c7ebfa
commit
7837081eba
@ -83,7 +83,7 @@ class Query:
|
|||||||
if response.content is not None:
|
if response.content is not None:
|
||||||
if response.headers.get("content-type") == "application/json":
|
if response.headers.get("content-type") == "application/json":
|
||||||
try:
|
try:
|
||||||
response.json = response.json(encoding="utf-8")
|
response.json = response.json()
|
||||||
except ValueError:
|
except ValueError:
|
||||||
response.json = None
|
response.json = None
|
||||||
# else:
|
# else:
|
||||||
|
Loading…
Reference in New Issue
Block a user