def check_correct_host(self):
if self._host == '<STR_LIT>':<EOL><INDENT>return<EOL><DEDENT>url = self._get_url('<STR_LIT>')<EOL>req = urllib.request.Request(url)<EOL>try:<EOL><INDENT>resp = urllib.request.urlopen(req)<EOL><DEDENT>except:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(self._host))<EOL><DEDENT>
The method checks whether the host is correctly set and whether it can configure the connection to this host. Does not check the base host knoema.com