Commit 4ea4efad authored by Tanner Prestegard's avatar Tanner Prestegard

Improve error handling for failed attempts to get service_info

parent deba064f
......@@ -446,6 +446,9 @@ class GraceDb(GsiRest):
else:
# Not a 404 error, must be something else
raise e
else:
if r.status != 200:
raise HTTPError(r.status, r.reason, r.read())
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