Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Exception handling when processing udev devices #5088

Merged
merged 9 commits into from
May 29, 2024
8 changes: 6 additions & 2 deletions supervisor/hardware/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,12 @@ def _import_devices(self) -> None:
# Exctract all devices
for device in self._udev.list_devices():
# Skip devices without mapping
if not device.device_node or self.helper.hide_virtual_device(device):
continue
try:
if not device.device_node or self.helper.hide_virtual_device(device):
continue
except:
RichardPar marked this conversation as resolved.
Show resolved Hide resolved
continue

self._devices[device.sys_name] = Device.import_udev(device)

async def load(self) -> None:
Expand Down