stop it from dying on fpdb summary files (by commenting out the whole section)
This commit is contained in:
parent
310c7a2947
commit
9cb47b4195
|
@ -434,23 +434,23 @@ class Fulltilt(HandHistoryConverter):
|
|||
def readSummaryInfo(self, summaryInfoList):
|
||||
self.status = True
|
||||
|
||||
m = re.search("Tournament Summary", summaryInfoList[0])
|
||||
if m:
|
||||
# info list should be 2 lines : Tourney infos & Finsihing postions with winnings
|
||||
if (len(summaryInfoList) != 2 ):
|
||||
log.info("Too many or too few lines (%d) in file '%s' : '%s'" % (len(summaryInfoList), self.in_path, summaryInfoList) )
|
||||
self.status = False
|
||||
else:
|
||||
self.tourney = TourneySummary.TourneySummary(sitename = self.sitename, gametype = None, summaryText = summaryInfoList, builtFrom = "HHC")
|
||||
self.status = self.getPlayersPositionsAndWinnings(self.tourney)
|
||||
if self.status == True :
|
||||
self.status = self.determineTourneyType(self.tourney)
|
||||
#print self.tourney
|
||||
else:
|
||||
log.info("Parsing NOK : rejected")
|
||||
else:
|
||||
log.info( "This is not a summary file : '%s'" % (self.in_path) )
|
||||
self.status = False
|
||||
#m = re.search("Tournament Summary", summaryInfoList[0])
|
||||
#if m:
|
||||
# # info list should be 2 lines : Tourney infos & Finsihing postions with winnings
|
||||
# if (len(summaryInfoList) != 2 ):
|
||||
# log.info("Too many or too few lines (%d) in file '%s' : '%s'" % (len(summaryInfoList), self.in_path, summaryInfoList) )
|
||||
# self.status = False
|
||||
# else:
|
||||
# self.tourney = TourneySummary.TourneySummary(sitename = self.sitename, gametype = None, summaryText = summaryInfoList, builtFrom = "HHC")
|
||||
# self.status = self.getPlayersPositionsAndWinnings(self.tourney)
|
||||
# if self.status == True :
|
||||
# self.status = self.determineTourneyType(self.tourney)
|
||||
# #print self.tourney
|
||||
# else:
|
||||
# log.info("Parsing NOK : rejected")
|
||||
#else:
|
||||
# log.info( "This is not a summary file : '%s'" % (self.in_path) )
|
||||
# self.status = False
|
||||
|
||||
return self.status
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user