mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix error handling
This commit is contained in:
parent
cbca7c3387
commit
7973b4e5e5
@ -37,12 +37,8 @@ class ClickHouseHelper:
|
||||
url, params=params, data=json_str, headers=auth
|
||||
)
|
||||
except Exception as e:
|
||||
logging.warning(
|
||||
"Received exception while sending data to %s on %s attempt: %s",
|
||||
url,
|
||||
i,
|
||||
e,
|
||||
)
|
||||
error = f"Received exception while sending data to {url} on {i} attempt: {e}"
|
||||
logging.warning(error)
|
||||
continue
|
||||
|
||||
logging.info("Response content '%s'", response.content)
|
||||
|
Loading…
Reference in New Issue
Block a user