fix bug
This commit is contained in:
@@ -26,7 +26,6 @@ def refresh_market(api_host: str = API_HOST) -> str:
|
||||
result = status(get_json(url, HTTP_TIMEOUT))
|
||||
except Exception as exc:
|
||||
result = "UNKNOWN"
|
||||
logging.error("获取大盘指数失败: %s %s", url, exc)
|
||||
with _market_lock:
|
||||
_market_status = result
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user