make sure db locks are released

This commit is contained in:
sqlcoder 2009-11-25 20:55:58 +00:00
parent 339a0133a9
commit 9d754e5e4b

View File

@ -152,14 +152,17 @@ class GuiGraphViewer (threading.Thread):
if not sitenos:
#Should probably pop up here.
print "No sites selected - defaulting to PokerStars"
self.db.rollback()
return
if not playerids:
print "No player ids found"
self.db.rollback()
return
if not limits:
print "No limits found"
self.db.rollback()
return
#Set graph properties