mirror of
https://github.com/ihabunek/toot
synced 2024-12-22 15:06:05 +01:00
Remove unnecessary try blocks
This commit is contained in:
parent
72b6a67215
commit
4ae9443174
@ -360,14 +360,8 @@ def print_diags(instance_dict: t.Optional[Data], include_files: bool):
|
||||
click.echo(f'{green("Config file path:")} {config.get_config_file_path()}')
|
||||
|
||||
if instance_dict:
|
||||
try:
|
||||
click.echo(f'{green("Server URI:")} {instance_dict["uri"]}')
|
||||
except: # noqa E722
|
||||
pass
|
||||
try:
|
||||
click.echo(f'{green("Server version:")} {instance_dict["version"]}')
|
||||
except: # noqa E722
|
||||
pass
|
||||
click.echo(f'{green("Server URI:")} {instance_dict.get("uri")}')
|
||||
click.echo(f'{green("Server version:")} {instance_dict.get("version")}')
|
||||
|
||||
if include_files:
|
||||
click.echo(f'{green("Settings file contents:")}')
|
||||
|
Loading…
Reference in New Issue
Block a user