def fetch(self, station: str) -> str:
valid_station(station)<EOL>try:<EOL><INDENT>resp = getattr(requests, self.method.lower())(self.url.format(self.rtype, station))<EOL>if resp.status_code != <NUM_LIT:200>:<EOL><INDENT>raise SourceError(f'<STR_LIT>')<EOL><DEDENT><DEDENT>except requests.exceptions.ConnectionError:<EOL><INDENT>raise ConnectionError(f'<STR_LIT>')<EOL><DEDENT>report = self._extract(resp.text, station)<EOL>return '<STR_LIT:U+0020>'.join(report.split())<EOL>
Fetches a report string from the service