From 065038cc2af34efee4ba95ede9f2ca75b10a9779 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Mon, 26 Aug 2024 22:21:59 -0400 Subject: [PATCH] don't use bare except --- relay/manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/manage.py b/relay/manage.py index d2525a0..078cd12 100644 --- a/relay/manage.py +++ b/relay/manage.py @@ -366,8 +366,8 @@ def cli_config_set(ctx: click.Context, key: str, value: Any) -> None: with ctx.obj.database.session() as conn: new_value = conn.put_config(key, value) - except: - click.echo('Invalid config name:', key) + except Exception: + click.echo(f'Invalid config name: {key}') return click.echo(f'{key}: {repr(new_value)}')