Fix device check if not exists (#2585)

This commit is contained in:
Pascal Vizeli 2021-02-18 12:39:42 +01:00 committed by GitHub
parent 8650947f04
commit 7ed9de8014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,7 @@ class DockerAddon(DockerInterface):
device = self.sys_hardware.get_by_path(device_path) device = self.sys_hardware.get_by_path(device_path)
except HardwareNotFound: except HardwareNotFound:
_LOGGER.debug("Ignore static device path %s", device_path) _LOGGER.debug("Ignore static device path %s", device_path)
continue
# Check access # Check access
if not self.sys_hardware.policy.allowed_for_access(device): if not self.sys_hardware.policy.allowed_for_access(device):