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