

def _get_ftp_connection(self):
    for _ in range(self.n_tries):
        try:
            ftp = ftplib.FTP('ftp.ncdc.noaa.gov')
            ftp.login()
            return ftp
        except EOFError:
            pass
    raise EOFError

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py NOAAClient._get_ftp_connection/original