add a timeout to qwknetftpc

This commit is contained in:
Andrew Pamment 2018-10-31 11:29:17 +10:00
parent e8eef519ed
commit 64ae6556f1
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ def dostuff(config_file):
username = config.get("Main", "Ftp User")
password = config.get("Main", "Ftp Password")
ftp = FTP(host)
ftp = FTP(host, timeout=300)
ftp.login(username, password)
repfile = config.get("Main", "Outbound") + "/" + config.get("Main", "Host") + ".REP"
@ -46,4 +46,4 @@ if __name__ == "__main__":
print("Usage python qwknetftpc.py config.ini")
exit(1)
server = dostuff(sys.argv[1])
server = dostuff(sys.argv[1])