mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-22 14:38:00 +00:00
don't use bare except
This commit is contained in:
parent
d44cee6d01
commit
065038cc2a
|
@ -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)}')
|
||||
|
|
Loading…
Reference in a new issue