From e448110d3d988e756b51a2177ae6afea5752d71c Mon Sep 17 00:00:00 2001 From: yzhh <31803608+OasisAkari@users.noreply.github.com> Date: Mon, 16 Dec 2024 18:29:48 +0800 Subject: [PATCH] Update config_generate.py --- core/scripts/config_generate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/scripts/config_generate.py b/core/scripts/config_generate.py index 08ea70230f..223adb9ea6 100644 --- a/core/scripts/config_generate.py +++ b/core/scripts/config_generate.py @@ -87,7 +87,8 @@ def generate_config(dir_path, language): if s.strip() == '': spl.remove(s) try: - eval(f'Config({','.join(spl)})') # Execute the code to generate the config file, yeah, just stupid but works + # Execute the code to generate the config file, yeah, just stupid but works + eval(f'Config({','.join(spl)})') except (NameError, TypeError): # traceback.print_exc() ...