mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix 4 errors in 3 lines
This commit is contained in:
parent
b0d6d8b904
commit
94964c44b3
@ -120,11 +120,11 @@ def clickhouse_execute_http(
|
||||
res = client.getresponse()
|
||||
data = res.read()
|
||||
break
|
||||
except ex:
|
||||
except Exception as ex:
|
||||
if i == MAX_RETRIES - 1:
|
||||
raise ex
|
||||
|
||||
time.sleep(i + 1)
|
||||
sleep(i + 1)
|
||||
|
||||
if res.status != 200:
|
||||
raise HTTPError(data.decode(), res.status)
|
||||
|
Loading…
Reference in New Issue
Block a user