fix weird error on windows? possibly just with p4e? trapping if we read 0 lines from history file
This commit is contained in:
parent
3325538c66
commit
e713a9c654
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user