mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 07:48:57 +00:00
Handle missing fingerprint manager during seed save
This commit is contained in:
@@ -1218,7 +1218,13 @@ class PasswordManager:
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
fingerprint = generate_fingerprint(seed)
|
fingerprint = generate_fingerprint(seed)
|
||||||
if fingerprint in self.fingerprint_manager.list_fingerprints():
|
existing = []
|
||||||
|
if (
|
||||||
|
hasattr(self, "fingerprint_manager")
|
||||||
|
and self.fingerprint_manager is not None
|
||||||
|
):
|
||||||
|
existing = self.fingerprint_manager.list_fingerprints()
|
||||||
|
if fingerprint in existing:
|
||||||
print(colored("Error: Seed profile already exists.", "red"))
|
print(colored("Error: Seed profile already exists.", "red"))
|
||||||
raise ValueError("Fingerprint already exists")
|
raise ValueError("Fingerprint already exists")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user