Check if bot is configured before trying to get username in bridge info provisioning API
This commit is contained in:
@@ -365,7 +365,7 @@ class ProvisioningAPI(AuthAPI):
|
|||||||
|
|
||||||
async def bridge_info(self, request: web.Request) -> web.Response:
|
async def bridge_info(self, request: web.Request) -> web.Response:
|
||||||
return web.json_response({
|
return web.json_response({
|
||||||
"relaybot_username": self.context.bot.username,
|
"relaybot_username": self.context.bot.username if self.context.bot is not None else None,
|
||||||
}, status=200)
|
}, status=200)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user