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 FTP
|
||||||
|
from ftplib import error_perm
|
||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
@ -34,7 +35,7 @@ def dostuff(config_file):
|
|||||||
ftp.retrbinary("RETR " + config.get("Main", "Host") + ".QWK", callback)
|
ftp.retrbinary("RETR " + config.get("Main", "Host") + ".QWK", callback)
|
||||||
file.close()
|
file.close()
|
||||||
print("RETREIVED: " + config.get("Main", "Host") + ".QWK")
|
print("RETREIVED: " + config.get("Main", "Host") + ".QWK")
|
||||||
except ftplib.error_perm:
|
except error_perm:
|
||||||
file.close()
|
file.close()
|
||||||
os.remove(qwkfile)
|
os.remove(qwkfile)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user