mirror of
https://github.com/ihabunek/toot
synced 2024-12-22 23:08:17 +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()}')
|
click.echo(f'{green("Config file path:")} {config.get_config_file_path()}')
|
||||||
|
|
||||||
if instance_dict:
|
if instance_dict:
|
||||||
try:
|
click.echo(f'{green("Server URI:")} {instance_dict.get("uri")}')
|
||||||
click.echo(f'{green("Server URI:")} {instance_dict["uri"]}')
|
click.echo(f'{green("Server version:")} {instance_dict.get("version")}')
|
||||||
except: # noqa E722
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
click.echo(f'{green("Server version:")} {instance_dict["version"]}')
|
|
||||||
except: # noqa E722
|
|
||||||
pass
|
|
||||||
|
|
||||||
if include_files:
|
if include_files:
|
||||||
click.echo(f'{green("Settings file contents:")}')
|
click.echo(f'{green("Settings file contents:")}')
|
||||||
|
Loading…
Reference in New Issue
Block a user