From e713a9c654ecbadfd8ef7ca20c7abb079c5d51b2 Mon Sep 17 00:00:00 2001 From: eblade Date: Mon, 10 Nov 2008 03:46:37 -0500 Subject: [PATCH] fix weird error on windows? possibly just with p4e? trapping if we read 0 lines from history file --- pyfpdb/fpdb_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index 64c4a02c..b12dba4e 100755 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -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: