From 7ef4304e2edb1c9833b12243e8087a8162082ee9 Mon Sep 17 00:00:00 2001 From: Daniel Koepping Date: Mon, 3 Aug 2026 16:49:01 -0700 Subject: [PATCH] handle transient sysfs read errors (#38521) handle transient USB sysfs read error --- openpilot/common/hardware/usb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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