fix unittests

This commit is contained in:
debugtalk
2020-03-07 18:48:15 +08:00
parent c4e2e74f39
commit 9047d02eaf
4 changed files with 4 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
import json
import re
from collections import OrderedDict
@@ -199,7 +200,7 @@ class ResponseObject(object):
elif top_query in ["body", "content", "text", "json"]:
try:
body = self.json
except exceptions.JSONDecodeError:
except json.JSONDecodeError:
body = self.text
if not sub_query: