Improve error handling for failed attempts to get service_info

parent deba064f
......@@ -446,6 +446,9 @@ class GraceDb(GsiRest):
# Not a 404 error, must be something else
raise e
if r.status != 200:
raise HTTPError(r.status, r.reason,
self._service_info = r.json()
return self._service_info
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment