File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -147,16 +147,6 @@ def execute_command(self, query):
147147 if attempt == ClickhouseApi .MAX_RETRIES - 1 :
148148 raise e
149149 time .sleep (ClickhouseApi .RETRY_INTERVAL )
150- except clickhouse_connect .driver .exceptions .DatabaseError as e :
151- # Handle TABLE_ALREADY_EXISTS errors
152- if "Table already exists" in str (e ) or "TABLE_ALREADY_EXISTS" in str (e ):
153- logger .warning (f"Table already exists, continuing: { e } " )
154- break
155- else :
156- logger .error (f'error executing command { query } : { e } ' , exc_info = e )
157- if attempt == ClickhouseApi .MAX_RETRIES - 1 :
158- raise e
159- time .sleep (ClickhouseApi .RETRY_INTERVAL )
160150
161151 def recreate_database (self ):
162152 self .execute_command (f'DROP DATABASE IF EXISTS `{ self .database } `' )
You can’t perform that action at this time.
0 commit comments