fix weird error on windows? possibly just with p4e? trapping if we read 0 lines from history file

This commit is contained in:
eblade 2008-11-10 03:46:37 -05:00
parent 3325538c66
commit e713a9c654

View File

@ -178,10 +178,10 @@ class Importer:
self.pos_in_file[file] = inputFile.tell()
inputFile.close()
try:
try: # sometimes we seem to be getting an empty self.lines, in which case, we just want to return.
firstline = self.lines[0]
except:
print "import_fpdb_file", file, site, lines
# print "import_fpdb_file", file, site, self.lines, "\n"
return
if firstline.find("Tournament Summary")!=-1: