# HG changeset patch # User Mads Kiilerich # Date 2020-12-26 18:14:26 # Node ID 04c8edacc3a1a8146400c990c52ba886756b60ac # Parent e3d033042fcadb7949be8e568c681f20570b96cc cli: in runtime_wrapper for config file handling, don't return unused command handler value Return values are not used - we should use sys.exit or similar to set command return codes. diff --git a/kallithea/bin/kallithea_cli_base.py b/kallithea/bin/kallithea_cli_base.py --- a/kallithea/bin/kallithea_cli_base.py +++ b/kallithea/bin/kallithea_cli_base.py @@ -82,7 +82,7 @@ def register_command(needs_config_file=F kallithea.config.application.make_app(config.global_conf, **config.local_conf) else: kallithea.CONFIG = dict(config) # config is a dict subclass - return annotated(*args, **kwargs) + annotated(*args, **kwargs) return cli_command(runtime_wrapper) return annotator return cli_command