From 48e06327717bfa583c3131a613e13af31c40bf32 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Wed, 6 Aug 2025 19:34:41 -0400 Subject: [PATCH] Avoid AttributeError when config manager missing --- src/seedpass/core/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/seedpass/core/manager.py b/src/seedpass/core/manager.py index b84be3d..a153cd6 100644 --- a/src/seedpass/core/manager.py +++ b/src/seedpass/core/manager.py @@ -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(