diff --git a/utils/qwknet/qwknetftpc.py b/utils/qwknet/qwknetftpc.py index 4828ba5..3a0bd48 100644 --- a/utils/qwknet/qwknetftpc.py +++ b/utils/qwknet/qwknetftpc.py @@ -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)