bugfix: make compatible with python 2.7/3.3/3.4

This commit is contained in:
debugtalk
2017-06-20 21:04:00 +08:00
parent 05968afb29
commit 369d4a9d47
2 changed files with 5 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ def load_testcases(testcase_file_path):
def parse_response_object(resp_obj):
try:
resp_content = resp_obj.json()
except json.decoder.JSONDecodeError:
except ValueError:
resp_content = resp_obj.text
return {