diff --git a/handler/analyzer/analyze_parameter.py b/handler/analyzer/analyze_parameter.py index 0cd4e58b..bb2d8117 100644 --- a/handler/analyzer/analyze_parameter.py +++ b/handler/analyzer/analyze_parameter.py @@ -135,7 +135,7 @@ def init_option_diff(self): if offline_file_option: if not os.path.exists(os.path.abspath(offline_file_option)): self.stdio.error('args --file [{0}] not exist: No such file, Please specify it again'.format(os.path.abspath(offline_file_option))) - exit(-1) + return False else: self.parameter_file_name = os.path.abspath(offline_file_option) self.check_file_valid() diff --git a/handler/analyzer/analyze_variable.py b/handler/analyzer/analyze_variable.py index ca07ede4..fd2255dc 100644 --- a/handler/analyzer/analyze_variable.py +++ b/handler/analyzer/analyze_variable.py @@ -83,13 +83,13 @@ def init_option(self): if offline_file_option: if not os.path.exists(os.path.abspath(offline_file_option)): self.stdio.error('args --file [{0}] not exist: No such file, Please specify it again'.format(os.path.abspath(offline_file_option))) - exit(-1) + return False else: self.variable_file_name = os.path.abspath(offline_file_option) self.check_file_valid() else: self.stdio.error("args --file need provided to find the parts where variables have changed.") - exit(-1) + return False if store_dir_option and store_dir_option != "./": if not os.path.exists(os.path.abspath(store_dir_option)):