From 4979d598f1b9ad4cb92b875453746e040145af17 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Tue, 20 Dec 2022 06:05:06 -0500 Subject: [PATCH] call app.setup first --- relay/manage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relay/manage.py b/relay/manage.py index 247e979..5946f03 100644 --- a/relay/manage.py +++ b/relay/manage.py @@ -31,6 +31,9 @@ def cli(ctx, config): global app app = Application(config) + if ctx.invoked_subcommand != 'convert': + app.setup() + if not ctx.invoked_subcommand: if app.config.host.endswith('example.com'): cli_setup.callback() @@ -38,9 +41,6 @@ def cli(ctx, config): else: cli_run.callback() - if ctx.invoked_subcommand != 'convert': - app.setup() - @cli.command('convert') @click.option('--old-config', '-o', help='path to the old relay config')