summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index b75d440d..d7340fb2 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -211,7 +211,11 @@ def start_db_connection():
def query_db(query):
cursor = conn_db.cursor()
- cursor.execute(query)
+ try:
+ cursor.execute(query)
+ except:
+ print_critical_message('Error execting this query:\n' + query)
+ raise
conn_db.commit()
return cursor.fetchall()