add a timeout to qwknetftpc

This commit is contained in:
Andrew Pamment 2018-10-31 11:29:17 +10:00
parent e8eef519ed
commit 64ae6556f1

View File

@ -12,7 +12,7 @@ def dostuff(config_file):
username = config.get("Main", "Ftp User") username = config.get("Main", "Ftp User")
password = config.get("Main", "Ftp Password") password = config.get("Main", "Ftp Password")
ftp = FTP(host) ftp = FTP(host, timeout=300)
ftp.login(username, password) ftp.login(username, password)
repfile = config.get("Main", "Outbound") + "/" + config.get("Main", "Host") + ".REP" repfile = config.get("Main", "Outbound") + "/" + config.get("Main", "Host") + ".REP"