File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ def setup_tpcds(config):
26
26
try :
27
27
conn = psycopg2 .connect (** config )
28
28
cur = conn .cursor ()
29
+ except Exception as e :
30
+ raise DataLoadException ('Load failed: %s' % e )
29
31
32
+ try :
30
33
# Create pg_query_state extension
31
34
cur .execute ('CREATE EXTENSION IF NOT EXISTS pg_query_state' )
32
35
@@ -131,8 +134,8 @@ def run_tpcds(config):
131
134
timeout_list .append (i + 1 )
132
135
133
136
if err_count > 2 :
134
- print ("ERROR : error in message queue data transmitting" )
135
- raise
137
+ print ("\n ERROR : error in message queue data transmitting" )
138
+ raise Exception ( 'error was received %d times' % err_count )
136
139
elif err_count > 0 :
137
140
print (err_count , " times there was error in message queue data transmitting" )
138
141
You can’t perform that action at this time.
0 commit comments