diff --git a/pycatfile.py b/pycatfile.py index 888c4d0..0f26394 100755 --- a/pycatfile.py +++ b/pycatfile.py @@ -5307,10 +5307,10 @@ def download_file_from_ftp_file(url): try: ftp.connect(urlparts.hostname, ftp_port); except socket.gaierror: - log.info("Error With URL "+httpurl); + log.info("Error With URL "+url); return False; except socket.timeout: - log.info("Error With URL "+httpurl); + log.info("Error With URL "+url); return False; ftp.login(urlparts.username, urlparts.password); if(urlparts.scheme=="ftps"): @@ -5354,10 +5354,10 @@ def upload_file_to_ftp_file(ftpfile, url): try: ftp.connect(urlparts.hostname, ftp_port); except socket.gaierror: - log.info("Error With URL "+httpurl); + log.info("Error With URL "+url); return False; except socket.timeout: - log.info("Error With URL "+httpurl); + log.info("Error With URL "+url); return False; ftp.login(urlparts.username, urlparts.password); if(urlparts.scheme=="ftps"):