MCPcopy Create free account
hub / github.com/brimdata/super / __raise_for_status

Method __raise_for_status

python/superdb/superdb.py:69–76  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

67
68 @staticmethod
69 def __raise_for_status(response):
70 if response.status_code >= 400:
71 try:
72 error = response.json()['error']
73 except Exception:
74 response.raise_for_status()
75 else:
76 raise RequestError(error, response)
77
78
79class RequestError(Exception):

Callers 3

create_poolMethod · 0.95
loadMethod · 0.95
query_rawMethod · 0.95

Calls 1

RequestErrorClass · 0.85

Tested by

no test coverage detected