mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
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:
1 parent
d61a7b4c92
commit
91391b1dd7
1 file changed
+2
@@ -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]")
|
||||
|
||||
Reference in new issue
Block a user