Remove warning on user signup (#2252)

This commit is contained in:
Yuhong Sun 2024-08-27 18:49:05 -07:00 committed by GitHub
parent effce919bd
commit 1e67332078
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 9 deletions

View File

@ -15,8 +15,8 @@ from danswer.configs.chat_configs import NUM_POSTPROCESSED_RESULTS
# revision identifiers, used by Alembic.
revision = "1f60f60c3401"
down_revision = "f17bf3b0d9f1"
branch_labels = None
depends_on = None
branch_labels: None = None
depends_on: None = None
def upgrade() -> None:

View File

@ -445,3 +445,8 @@ async def current_admin_user(user: User | None = Depends(current_user)) -> User
)
return user
def get_default_admin_user_emails_() -> list[str]:
# No default seeding available for Danswer MIT
return []

View File

@ -68,13 +68,7 @@ def fetch_versioned_implementation_with_fallback(
) -> T:
try:
return fetch_versioned_implementation(module, attribute)
except Exception as e:
logger.warning(
"Failed to fetch versioned implementation for %s.%s: %s",
module,
attribute,
e,
)
except Exception:
return fallback