mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-08 05:42:27 +00:00
Add tests for secret mode initialization
This commit is contained in:
1 parent
92142a3e1b
commit
d92385eff9
3 files changed
+80
-2
No files matched your search
@@ -538,6 +538,10 @@ class PasswordManager:
|
||||
)
|
||||
)
|
||||
|
||||
# Ensure managers are initialized for the newly created profile
|
||||
if self.config_manager is None:
|
||||
self.initialize_managers()
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error adding new seed profile: {e}", exc_info=True)
|
||||
print(colored(f"Error: Failed to add new seed profile: {e}", "red"))
|
||||
@@ -960,6 +964,10 @@ class PasswordManager:
|
||||
print(colored("Invalid choice. Exiting.", "red"))
|
||||
sys.exit(1)
|
||||
|
||||
# Some seed loading paths may not initialize managers; ensure they exist
|
||||
if self.config_manager is None:
|
||||
self.initialize_managers()
|
||||
|
||||
def setup_existing_seed(
|
||||
self,
|
||||
method: Literal["paste", "words"] = "paste",
|
||||
|
||||
Reference in new issue
Block a user