mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2024-12-18 20:57:56 +00:00
sometimes during an error - the error doesn't come back as compressed now ?
This commit is contained in:
parent
9677a717e6
commit
be754bb13e
@ -31,7 +31,10 @@ def request(payload, path, method, params=None):
|
||||
r = es_session.send(request.prepare())
|
||||
|
||||
if r.status_code != 200 and r.status_code != 201:
|
||||
print(zlib.decompress(r.content, 16 + zlib.MAX_WBITS))
|
||||
try:
|
||||
print(zlib.decompress(r.content, 16 + zlib.MAX_WBITS))
|
||||
except:
|
||||
print(r.content)
|
||||
raise RuntimeError
|
||||
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user