mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 02:43:46 +08:00
fix spinner crash (#38612)
ui: keep spinner independent of build artifacts
This commit is contained in:
@@ -16,7 +16,7 @@ def _get_device() -> DeviceLike:
|
||||
try:
|
||||
from openpilot.selfdrive.ui.ui_state import device
|
||||
return device
|
||||
except ImportError:
|
||||
except (ImportError, OSError):
|
||||
class Device:
|
||||
awake = True
|
||||
return Device()
|
||||
|
||||
Reference in New Issue
Block a user