comms: tolerate missing admin token setting
This commit is contained in:
parent
00aaf23b54
commit
0675b8b688
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user