Fix: Table parse method issue. (#11627)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-12-01 12:42:35 +08:00
committed by GitHub
parent 9d0309aedc
commit 88a28212b3
3 changed files with 18 additions and 16 deletions

View File

@ -575,9 +575,9 @@ class ESConnection(DocStoreConnection):
time.sleep(3)
self._connect()
continue
except Exception:
logger.exception("ESConnection.sql got exception")
break
except Exception as e:
logger.exception(f"ESConnection.sql got exception. SQL:\n{sql}")
raise Exception(f"SQL error: {e}\n\nSQL: {sql}")
logger.error(f"ESConnection.sql timeout for {ATTEMPT_TIME} times!")
return None