fix: import bug (#8199)

fix import bug

Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
This commit is contained in:
Sebastián Estévez 2025-05-23 17:17:38 -04:00 committed by GitHub
commit 9d5c75bce3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,8 @@ class NvidiaSystemAssistComponent(ComponentWithCache):
rise_initialized = False
def maybe_register_rise_client(self):
with contextlib.suppress(ImportError):
from gassist.rise import register_rise_client
rise_initialized = self._shared_component_cache.get("rise_initialized")
if not isinstance(rise_initialized, CacheMiss) and rise_initialized:
return