Python try/except not working
问题 Trying to get the try/except statement working but having problems. This code will take a txt file and copy the file that is in location row 0 to location of row 1. It works however if i change one of the paths to invalid one it generates an error ftplib.error_perm however the except command is not picking up and everything stops. What am i doing wrong? Python 2.4 import csv import operator import sys import os import shutil import logging import ftplib import tldftp def docopy(filename): ftp