From 5fdd432fac1e807a74c6af72a5055836749540fd Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期二, 15 八月 2023 14:34:11 +0800 Subject: [PATCH] ++++++++++++++++ bug修复- --- huaxin_api/l2_client.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/huaxin_api/l2_client.py b/huaxin_api/l2_client.py index 969e696..7d6835c 100644 --- a/huaxin_api/l2_client.py +++ b/huaxin_api/l2_client.py @@ -517,8 +517,8 @@ volume = data["data"]["volume"] code = data["data"]["code"] spi.set_code_special_watch_volume(code, volume) - except: - pass + except Exception as e: + logging.exception(e) def __receive_from_pipe_strategy(pipe): @@ -526,13 +526,14 @@ try: value = pipe.recv() if value: + print("__receive_from_pipe_strategy:",value) value = value.decode("utf-8") data = json.loads(value) if data["type"] == "set_l2_codes": data = data["data"] l2CommandManager.process_command(command_manager.CLIENT_TYPE_CMD_L2, None, data) - except: - pass + except Exception as e: + logging.exception(e) def run(pipe_trade=None, pipe_strategy=None): -- Gitblit v1.8.0