From c58ffedd14d2a29c4e521c92ccbf4c34b956dc1c Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 23 Dec 2010 19:29:50 -0700 Subject: persist_data: unbork the resurrect of select lock wait Signed-off-by: Chris Larson --- lib/bb/persist_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bb/persist_data.py') diff --git a/lib/bb/persist_data.py b/lib/bb/persist_data.py index 80685332f..0ebdf36f4 100644 --- a/lib/bb/persist_data.py +++ b/lib/bb/persist_data.py @@ -54,7 +54,7 @@ class SQLTable(collections.MutableMapping): """Execute a query, waiting to acquire a lock if necessary""" while True: try: - self.cursor.execute(*query) + return self.cursor.execute(*query) break except sqlite3.OperationalError as exc: if 'database is locked' in str(exc): -- cgit 1.2.3-korg