mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 08:19:23 +00:00
Add regression test for word-by-word seed setup
This commit is contained in:
@@ -529,6 +529,9 @@ class PasswordManager:
|
||||
print(colored("Invalid choice. Exiting.", "red"))
|
||||
sys.exit(1)
|
||||
|
||||
if not fingerprint:
|
||||
return None
|
||||
|
||||
# Set current_fingerprint in FingerprintManager only
|
||||
self.fingerprint_manager.current_fingerprint = fingerprint
|
||||
print(
|
||||
@@ -542,6 +545,8 @@ class PasswordManager:
|
||||
if getattr(self, "config_manager", None) is None:
|
||||
self.initialize_managers()
|
||||
|
||||
return fingerprint
|
||||
|
||||
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"))
|
||||
@@ -1000,8 +1005,8 @@ class PasswordManager:
|
||||
logging.error("Invalid BIP-85 seed phrase. Exiting.")
|
||||
print(colored("Error: Invalid BIP-85 seed phrase.", "red"))
|
||||
sys.exit(1)
|
||||
|
||||
return self._finalize_existing_seed(parent_seed, password=password)
|
||||
fingerprint = self._finalize_existing_seed(parent_seed, password=password)
|
||||
return fingerprint
|
||||
except KeyboardInterrupt:
|
||||
logging.info("Operation cancelled by user.")
|
||||
self.notify("Operation cancelled by user.", level="WARNING")
|
||||
|
Reference in New Issue
Block a user