def METHOD_NAME(self) -> None:
    invalid_api_key = ""
    with self.mock_config_info({"api_key": invalid_api_key}):
        with self.assertRaises(KeyError):
            bot, bot_handler = self._get_handlers()