From 9e0a2704b51b4b15995201e586cff4f0f99c7433 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 8 Feb 2015 14:48:43 +0100 Subject: reproducible: and you must try and try... and really better except properly --- bin/reproducible_common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_common.py') diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index a1ff02aa..79db4f35 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -227,7 +227,6 @@ def start_udd_connection(): return conn def query_udd(query): - conn_udd = start_udd_connection() cursor = conn_udd.cursor() cursor.execute(query) return cursor.fetchall() @@ -344,6 +343,8 @@ def get_bugs(): # init the databases connections conn_db = start_db_connection() # the local sqlite3 reproducible db +try: + conn_udd = start_udd_connection() # do the db querying amount = int(query_db('SELECT count(name) FROM sources')[0][0]) -- cgit v1.2.3-70-g09d2