return appropriate tuple from import_fpdb_file on file error

This commit is contained in:
eblade 2009-02-25 23:17:36 -05:00
parent 560cb1a543
commit c7541d9f14

View File

@ -190,6 +190,7 @@ class Importer:
self.addImportDirectory(dir, True, self.addToDirList[dir][0], self.addToDirList[dir][1])
for file in self.removeFromFileList:
if file in self.filelist:
del self.filelist[file]
self.addToDirList = {}
@ -243,8 +244,8 @@ class Importer:
if os.path.exists(file):
inputFile = open(file, "rU")
else:
self.removeFromFileList['file'] = True
return
self.removeFromFileList[file] = True
return (0, 0, 0, 1, 0)
try:
loc = self.pos_in_file[file]
except: