From ab1c37ead2331f54b6cc8007af4c345be6e7f55d Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Nov 2009 10:46:36 -0500 Subject: [PATCH] IndexError -> KeyError .. doh. --- pyfpdb/fpdb_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index e43dccf5..fcad30be 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -462,7 +462,7 @@ class Importer: loc = self.pos_in_file[file] #size = os.path.getsize(file) #print "loc =", loc, 'size =', size - except IndexError: + except KeyError: pass # Read input file into class and close file inputFile.seek(loc)