replace catchall except with an if

This commit is contained in:
steffen123 2010-07-06 23:52:59 +02:00
parent e2087d60a1
commit e4916bc456

View File

@ -1985,9 +1985,9 @@ class Database:
(tourney.siteId, tourney.tourNo))
result=cursor.fetchone()
try:
if len(result)==1:
tourneyId = result[0]
except:
else:
cursor.execute (self.sql.query['insertTourney'].replace('%s', self.sql.query['placeholder']),
(tourney.tourneyTypeId, tourney.tourNo, tourney.entries, tourney.prizepool,
tourney.startTime, tourney.endTime, tourney.tourneyName, None,