Avoid AttributeError when config manager missing

This commit is contained in:
thePR0M3TH3AN
2025-08-06 19:34:41 -04:00
parent d92385eff9
commit 48e0632771

View File

@@ -539,7 +539,7 @@ class PasswordManager:
)
# Ensure managers are initialized for the newly created profile
if self.config_manager is None:
if getattr(self, "config_manager", None) is None:
self.initialize_managers()
except Exception as e:
@@ -965,7 +965,7 @@ class PasswordManager:
sys.exit(1)
# Some seed loading paths may not initialize managers; ensure they exist
if self.config_manager is None:
if getattr(self, "config_manager", None) is None:
self.initialize_managers()
def setup_existing_seed(