From 64b9ff21571252403a989a71db1ccac15af2f8d5 Mon Sep 17 00:00:00 2001 From: flaskfarm Date: Fri, 14 Oct 2022 15:48:14 +0900 Subject: [PATCH] update --- lib/framework/version.py | 2 +- lib/system/mod_setting.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/framework/version.py b/lib/framework/version.py index 1deaac4..81e510f 100644 --- a/lib/framework/version.py +++ b/lib/framework/version.py @@ -1 +1 @@ -VERSION="4.0.2" \ No newline at end of file +VERSION="4.0.3" \ No newline at end of file diff --git a/lib/system/mod_setting.py b/lib/system/mod_setting.py index 649a171..90dd5d3 100644 --- a/lib/system/mod_setting.py +++ b/lib/system/mod_setting.py @@ -202,6 +202,7 @@ class ModuleSetting(PluginModuleBase): if command == None: command = SystemModelSetting.get('celery_start_command') command = command.replace("{F.config['config_filepath']}", F.config['config_filepath']).replace('{F.config["config_filepath"]}', F.config['config_filepath']).replace("{F.config['path_working']}", F.config['path_working']).replace('{F.config["path_working"]}', F.config['path_working']) + command = command.split(' ') if mode == 'foreground': cmd = [ ['msg', f'명령 : {command}'], @@ -232,6 +233,9 @@ class ModuleSetting(PluginModuleBase): except NotRegistered: data['ret'] = 'danger' data['msg'] = 'Not Registered' + except: + data['ret'] = 'danger' + data['msg'] = '실패' else: data['ret'] = 'danger' data['msg'] = 'celery 실행환경이 아닙니다.'