fix(lint): add missing Console() instances in export/import key functions

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Opus 4.6 committed 2026-03-16 21:12:35 -04:00
1 parent d61a7b4c92
commit 91391b1dd7
1 file changed
+2
+2
View File
@@ -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]")