File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ def _parse_headers(self, headers):
109
109
isValid = _parse_headers (self , e .headers )
110
110
if isValid :
111
111
json_data = json .loads (e .read ())
112
+ else :
113
+ json_data = None
112
114
req = dict (method = method , url = url )
113
115
resp = dict (code = e .code , json = json_data )
114
116
if resp ['code' ] == 404 :
Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ def _parse_headers(self, headers):
78
78
isValid = self ._parse_headers (e .headers )
79
79
if isValid :
80
80
json_data = json .loads (e .read ())
81
+ else :
82
+ json_data = None
81
83
req = dict (method = method , url = url )
82
84
resp = dict (code = e .code , json = json_data )
83
85
if resp ['code' ] == 404 :
Original file line number Diff line number Diff line change @@ -168,6 +168,8 @@ def _parse_headers(self, headers):
168
168
isValid = _parse_headers (self , e .headers )
169
169
if isValid :
170
170
json_data = json .loads (e .read ())
171
+ else :
172
+ json_data = None
171
173
req = dict (method = method , url = url )
172
174
resp = dict (code = e .code , json = json_data )
173
175
if resp ['code' ] == 404 :
You can’t perform that action at this time.
0 commit comments