From c2fc556a779c71aec55489480761db158ea7ff4e Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 26 六月 2024 10:01:27 +0800 Subject: [PATCH] bug修复 --- third_data/kpl_data_manager.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/third_data/kpl_data_manager.py b/third_data/kpl_data_manager.py index fc4f5e1..98bf038 100644 --- a/third_data/kpl_data_manager.py +++ b/third_data/kpl_data_manager.py @@ -174,7 +174,11 @@ @classmethod def get_current_codes_by_block(cls, block): - return cls.__current_reason_codes_dict.get(block) + try: + return cls.__current_reason_codes_dict.get(block) + except Exception as e: + logger_debug.info(f"{cls.__current_reason_codes_dict}") + return set() @classmethod def get_current_reason_codes_dict(cls): -- Gitblit v1.8.0