comms: tolerate missing admin token setting

This commit is contained in:
Brad Stein 2026-01-27 05:12:43 -03:00
parent 00aaf23b54
commit 0675b8b688

View File

@ -103,7 +103,7 @@ class CommsService:
return self._client_factory(timeout=settings.comms_timeout_sec) return self._client_factory(timeout=settings.comms_timeout_sec)
def _admin_token(self, fallback: str) -> str: def _admin_token(self, fallback: str) -> str:
token = settings.comms_synapse_admin_token token = getattr(settings, "comms_synapse_admin_token", "")
return token if token else fallback return token if token else fallback
def _mas_admin_token(self, client: httpx.Client) -> str: def _mas_admin_token(self, client: httpx.Client) -> str: