From 474e2bd9757a33a5e15d3df3f3b625324afcfed0 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Mon, 27 Jul 2026 00:28:10 +0200 Subject: [PATCH] Drop unreachable web client check in get_diagnostic_data wc() either returns a client or propagates the exception raised while logging in; it cannot return None the way connect() could. --- confluent_server/aiohmi/ipmi/oem/lenovo/nextscale.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/confluent_server/aiohmi/ipmi/oem/lenovo/nextscale.py b/confluent_server/aiohmi/ipmi/oem/lenovo/nextscale.py index f15245c2..31bfe9f8 100644 --- a/confluent_server/aiohmi/ipmi/oem/lenovo/nextscale.py +++ b/confluent_server/aiohmi/ipmi/oem/lenovo/nextscale.py @@ -792,8 +792,6 @@ class SMMClient(object): if progress: progress({'phase': 'initializing', 'progress': initpct}) wc = await self.wc() - if wc is None: - raise Exception("Failed to connect to web api") if variant and variant >> 5: url = '/preview/smm2-ffdc.tgz?ST1={0}'.format(wc.st1) else: