Reformat files with black

This commit is contained in:
deajan 2024-06-04 12:50:36 +02:00
parent 932422cea3
commit 585cdaa7ba
2 changed files with 21 additions and 3 deletions

View file

@ -126,7 +126,7 @@ This is free software, and you are welcome to redistribute it under certain cond
type=str,
default=None,
required=False,
help='Forget given snapshot',
help="Forget given snapshot",
)
parser.add_argument(
"--policy",
@ -523,7 +523,26 @@ This is free software, and you are welcome to redistribute it under certain cond
cli_args["operation"] = "has_recent_snapshot"
# Group operation mode
if args.group_operation not in ("backup", "restore", "snapshots", "list", "ls", "find", "policy", "quick_check", "full_check", "prune", "prune_max", "unlock", "repair_index", "repair_snapshots", "dump", "stats", "raw", "has_recent_snapshot"):
if args.group_operation not in (
"backup",
"restore",
"snapshots",
"list",
"ls",
"find",
"policy",
"quick_check",
"full_check",
"prune",
"prune_max",
"unlock",
"repair_index",
"repair_snapshots",
"dump",
"stats",
"raw",
"has_recent_snapshot",
):
logger.critical(
f"Invalid group operation {args.group_operation}. Valid operations are [backup|restore|snapshots|list|ls|find|policy|quick_check|full_check|prune|prune_max|unlock|repair_index|repair_snapshots|dump|stats|raw|has_recent_snapshot]"
)

View file

@ -891,7 +891,6 @@ def _main_gui(viewer_mode: bool):
if not config_file and not full_config and not viewer_mode:
window["-NO-CONFIG-"].Update(visible=True)
# Don't load repo info on first load, unless we're dealing with viewer
if repo_config and viewer_mode:
try: