From bd9074d8c0bc1121fd09b6c1e3ab86c07918afbf Mon Sep 17 00:00:00 2001 From: Sergei Shutov Date: Tue, 29 Aug 2023 21:39:43 +0300 Subject: [PATCH] Add condition check --- v4l2py/device.py | 1 + 1 file changed, 1 insertion(+) diff --git a/v4l2py/device.py b/v4l2py/device.py index a897317..fa10275 100644 --- a/v4l2py/device.py +++ b/v4l2py/device.py @@ -1186,6 +1186,7 @@ def __init__(self, device, info): self.data = { item.index: int(item.name) for item in iter_read_menu(self.device._fobj, self) + if item.name != b'' } else: raise TypeError(