changeset 8824:04c8edacc3a1

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.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 26 Dec 2020 18:14:26 +0100
parents e3d033042fca
children e9521559d013
files kallithea/bin/kallithea_cli_base.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/bin/kallithea_cli_base.py	Wed Dec 30 00:00:41 2020 +0100
+++ b/kallithea/bin/kallithea_cli_base.py	Sat Dec 26 18:14:26 2020 +0100
@@ -82,7 +82,7 @@
                     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