forgot to commit this fix

This commit is contained in:
Andrew Pamment 2018-10-28 11:07:08 +10:00
parent d483d82ca3
commit fc446b6e92

View File

@ -1,4 +1,5 @@
from ftplib import FTP
from ftplib import error_perm
import configparser
import os
import sys
@ -34,7 +35,7 @@ def dostuff(config_file):
ftp.retrbinary("RETR " + config.get("Main", "Host") + ".QWK", callback)
file.close()
print("RETREIVED: " + config.get("Main", "Host") + ".QWK")
except ftplib.error_perm:
except error_perm:
file.close()
os.remove(qwkfile)