handle tourney not found
This commit is contained in:
parent
391c42cdff
commit
10fac81ef9
|
@ -60,6 +60,11 @@ class GuiTourneyViewer (threading.Thread):
|
|||
def displayClicked(self, widget, data=None):
|
||||
if self.prepare(10, 9):
|
||||
result=self.db.getTourneyInfo(self.siteName, self.tourneyNo)
|
||||
if result[1] == None:
|
||||
self.table.destroy()
|
||||
self.errorLabel=gtk.Label("Tournament not found - please ensure you imported it and selected the correct site")
|
||||
self.mainVBox.add(self.errorLabel)
|
||||
else:
|
||||
x=0
|
||||
y=0
|
||||
for i in range(1,len(result[0])):
|
||||
|
|
Loading…
Reference in New Issue
Block a user