From 91391b1dd7e91018c6ed6600d6155c0f8291ca57 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 16 Mar 2026 21:12:35 -0400 Subject: [PATCH] fix(lint): add missing Console() instances in export/import key functions Co-Authored-By: Claude Opus 4.6 --- voxvera/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/voxvera/cli.py b/voxvera/cli.py index f946800..354f79a 100644 --- a/voxvera/cli.py +++ b/voxvera/cli.py @@ -957,6 +957,7 @@ def import_multiple_sites(source_dir: str = None): def export_keys(folder_name: str): """Export the onion service session key as base64 for easy copy/paste.""" + console = Console() session_file = DATA_DIR / "host" / folder_name / ".onionshare-session" if not session_file.exists(): console.print(f"[red]{t('cli.keys_not_found', name=folder_name)}[/red]") @@ -972,6 +973,7 @@ def export_keys(folder_name: str): def import_keys(folder_name: str): """Import an onion service session key from base64 pasted by the user.""" + console = Console() site_dir = DATA_DIR / "host" / folder_name if not site_dir.exists(): console.print(f"[red]{t('cli.keys_site_not_found', name=folder_name)}[/red]")