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')