add a timeout to qwknetftpc
This commit is contained in:
parent
e8eef519ed
commit
64ae6556f1
@ -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"
|
||||||
|
Reference in New Issue
Block a user