mirror of
https://opendev.org/x/pyghmi
synced 2025-01-15 04:07:48 +00:00
Merge "Graceful error on no https in get_health"
This commit is contained in:
commit
2f961f6c5f
@ -1728,7 +1728,10 @@ class XCCClient(IMMClient):
|
||||
break
|
||||
|
||||
def get_health(self, summary):
|
||||
wc = self.get_webclient(False)
|
||||
try:
|
||||
wc = self.get_webclient(False)
|
||||
except Exception:
|
||||
wc = None
|
||||
if not wc:
|
||||
summary['health'] = pygconst.Health.Critical;
|
||||
summary['badreadings'].append(
|
||||
|
Loading…
x
Reference in New Issue
Block a user