diff --git a/openpilot/common/hardware/usb.py b/openpilot/common/hardware/usb.py index 538b3d818..0020a3783 100644 --- a/openpilot/common/hardware/usb.py +++ b/openpilot/common/hardware/usb.py @@ -22,7 +22,7 @@ def read(path: Path) -> str | None: def read_int(path: Path, base: int = 10) -> int: try: return int(path.read_text(), base) - except (OSError, ValueError): + except (OSError, ValueError, TypeError): return 0