Fix 4 errors in 3 lines

This commit is contained in:
alesapin 2022-12-28 23:18:58 +01:00
parent b0d6d8b904
commit 94964c44b3

View File

@ -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)