From 9d754e5e4b82eee146eaf46a1d4cdece7ea08270 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Wed, 25 Nov 2009 20:55:58 +0000 Subject: [PATCH] make sure db locks are released --- pyfpdb/GuiGraphViewer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyfpdb/GuiGraphViewer.py b/pyfpdb/GuiGraphViewer.py index e6d0c6d2..b81f2d5e 100644 --- a/pyfpdb/GuiGraphViewer.py +++ b/pyfpdb/GuiGraphViewer.py @@ -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