forgot to commit this fix
This commit is contained in:
parent
d483d82ca3
commit
fc446b6e92
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user