We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a81edd4 commit 7801aa1Copy full SHA for 7801aa1
tests/tpcds.py
@@ -26,7 +26,10 @@ def setup_tpcds(config):
26
try:
27
conn = psycopg2.connect(**config)
28
cur = conn.cursor()
29
+ except Exception as e:
30
+ raise DataLoadException('Load failed: %s' % e)
31
32
+ try:
33
# Create pg_query_state extension
34
cur.execute('CREATE EXTENSION IF NOT EXISTS pg_query_state')
35
@@ -131,8 +134,8 @@ def run_tpcds(config):
131
134
timeout_list.append(i + 1)
132
135
133
136
if err_count > 2:
- print("ERROR: error in message queue data transmitting")
- raise
137
+ print("\nERROR: error in message queue data transmitting")
138
+ raise Exception('error was received %d times'%err_count)
139
elif err_count > 0:
140
print(err_count, " times there was error in message queue data transmitting")
141
0 commit comments