Skip to content

Commit ef7e190

Browse files
committed
stock detail handle None data
1 parent 7c39db5 commit ef7e190

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tigeropen/quote/response/stock_details_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def parse_response_content(self, response_content):
109109
response = super(StockDetailsResponse, self).parse_response_content(response_content)
110110
if 'is_success' in response:
111111
self._is_success = response['is_success']
112-
112+
if not self.data:
113+
return
113114
detail_data = []
114115
data_json = json.loads(self.data)
115116
item_values = {}

0 commit comments

Comments
 (0)