From b6b59a5db39e042d0d173604497ebfa34be47d72 Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 11 十月 2023 16:11:45 +0800 Subject: [PATCH] bug修复 --- third_data/kpl_data_manager.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/third_data/kpl_data_manager.py b/third_data/kpl_data_manager.py index f64803f..df23bd8 100644 --- a/third_data/kpl_data_manager.py +++ b/third_data/kpl_data_manager.py @@ -1,4 +1,5 @@ import json +import logging import os import threading import time @@ -325,7 +326,7 @@ def get_limit_up(): while True: - if tool.is_trade_time() or True: + if tool.is_trade_time(): try: results = kpl_api.daBanList(kpl_api.DABAN_TYPE_LIMIT_UP) result = json.loads(results) @@ -333,7 +334,7 @@ __upload_data("limit_up", result) logger_kpl_limit_up_reason_change.info("涓婁紶鑰楁椂锛歿}", time.time() - start_time) except Exception as e: - pass + logging.exception(e) time.sleep(3) def get_bidding_money(): -- Gitblit v1.8.0