don't use bare except

This commit is contained in:
Izalia Mae 2024-08-26 22:21:59 -04:00
parent d44cee6d01
commit 065038cc2a

View file

@ -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)}')