From b8e738e18f8aefc6dfb2737c01c2b2037862b079 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期三, 27 三月 2024 17:50:39 +0800
Subject: [PATCH] 取消S后撤/更改委托列表接口

---
 third_data/kpl_data_manager.py |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/third_data/kpl_data_manager.py b/third_data/kpl_data_manager.py
index 0affc52..82c1ce6 100644
--- a/third_data/kpl_data_manager.py
+++ b/third_data/kpl_data_manager.py
@@ -417,16 +417,22 @@
 
     def get_limit_up():
         while True:
-            if (tool.is_trade_time() and int(tool.get_now_time_str().replace(':', '')) > int("092530")) or True:
-                try:
+            try:
+                if (tool.is_trade_time() and int(tool.get_now_time_str().replace(':', '')) > int("092530")):
                     results = kpl_api.getLimitUpInfoNew()
                     result = json.loads(results)
                     start_time = time.time()
                     __upload_data("limit_up", result)
-                except Exception as e:
+            except Exception as e:
+                try:
                     logging.exception(e)
                     logger_debug.exception(e)
-            time.sleep(3)
+                except:
+                    pass
+            except:
+                pass
+            finally:
+                time.sleep(3)
 
     def get_bidding_money():
         # 绔炰环鏁版嵁涓婁紶

--
Gitblit v1.8.0