def wait_for_web_available(self):
try:<EOL><INDENT>if not wait_for_service_available(<EOL>self._get_container_name('<STR_LIT>'),<EOL>self.web_address(),<EOL>WEB_START_TIMEOUT_SECONDS):<EOL><INDENT>raise DatacatsError('<STR_LIT>' +<EOL>container_logs(self._get_container_name('<STR_LIT>'), "<STR_LIT:all>",<EOL>False, None))<EOL><DEDENT><DEDENT>except ServiceTimeout:<EOL><INDENT>raise DatacatsError('<STR_LIT>' +<EOL>container_logs(self._get_container_name('<STR_LIT>'), "<STR_LIT:all>", False, None))<EOL><DEDENT>
Wait for the web server to become available or raise DatacatsError
if it fails to start.