mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
bugfix: make compatible with python 2.7/3.3/3.4
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user