Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Mar 13, 2024
1 parent 9b1ca0b commit 8a1fac3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down Expand Up @@ -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"):
Expand Down

0 comments on commit 8a1fac3

Please sign in to comment.