fix: import bug (#8199)
fix import bug Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
This commit is contained in:
parent
4343839dc6
commit
9d5c75bce3
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue