diff --git a/agixt/DB.py b/agixt/DB.py index 3a1f114d0db5..183dfa9035dd 100644 --- a/agixt/DB.py +++ b/agixt/DB.py @@ -800,7 +800,10 @@ def migrate_company_agent_name(): logging.error(f"Error connecting to database: {e}") time.sleep(5) # Create any missing tables - migrate_company_agent_name() + try: + migrate_company_agent_name() + except Exception as e: + logging.error(f"Error during migration: {e}") Base.metadata.create_all(engine) setup_default_roles() seed_data = str(getenv("SEED_DATA")).lower() == "true"