Skip to content

Commit 11451bd

Browse files
authored
Merge pull request #174 from DMTF/ServiceUnavailable-Clarification
Clarified the exception message raised when unable to access the service root
2 parents 731101f + 5e6cef3 commit 11451bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/redfish/rest/v1.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,11 @@ def get_root_object(self):
611611
self.root = {}
612612
self.root_resp = resp
613613
return
614+
if resp.status == 503:
615+
raise ServerDownOrUnreachableError("Service is busy, " \
616+
"return code: %d" % resp.status,response=resp)
614617
if resp.status != 200:
615-
raise ServerDownOrUnreachableError("Server not reachable, " \
618+
raise ServerDownOrUnreachableError("Service not able to provide the service root, " \
616619
"return code: %d" % resp.status,response=resp)
617620

618621
content = resp.text

0 commit comments

Comments
 (0)