fix #4078
This commit is contained in:
@@ -75,7 +75,7 @@ def _find_system_cameras():
|
|||||||
if os.path.exists(device_root):
|
if os.path.exists(device_root):
|
||||||
for device in os.listdir(device_root):
|
for device in os.listdir(device_root):
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(device_root, device, 'name')) as f:
|
with open(os.path.join(device_root, device, 'name'), encoding='utf-8') as f:
|
||||||
name = f.read()
|
name = f.read()
|
||||||
except IOError:
|
except IOError:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user