From c3a657437287aadcd8f2907fb657e7282af27c02 Mon Sep 17 00:00:00 2001 From: JIAKUNHAO Date: Mon, 28 Nov 2022 17:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E8=BD=AE=E8=BF=94=E5=9B=9E=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/configs/global_var.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/configs/global_var.py b/app/configs/global_var.py index 135c1da..e64350a 100644 --- a/app/configs/global_var.py +++ b/app/configs/global_var.py @@ -31,5 +31,6 @@ def get_value(key): # 获得一个全局变量,不存在则提示读取对应变量失败 try: return redis_client.get_redis().get("_global_dict")[key] - except: + except Exception as e: + print(e) print('读取' + key + '失败\r\n')