Skip to content

Commit f458ffd

Browse files
committed
Remove unsafe
1 parent 202c8c0 commit f458ffd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

mysql_ch_replicator/clickhouse_api.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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}`')

0 commit comments

Comments
 (0)