mirror of
https://codeberg.org/privacy1st/rotate-screen
synced 2024-11-22 21:39:33 +01:00
fix
This commit is contained in:
parent
057b655470
commit
52ff900fd2
@ -98,14 +98,12 @@ class Config:
|
|||||||
break
|
break
|
||||||
if match is None:
|
if match is None:
|
||||||
raise Exception(f"Device {device['name']} not found.")
|
raise Exception(f"Device {device['name']} not found.")
|
||||||
match.fail_ok = fail_ok
|
matches.append(Device(match.name, match.id, fail_ok))
|
||||||
matches.append(match)
|
|
||||||
if "name_contains" in device:
|
if "name_contains" in device:
|
||||||
matched = False
|
matched = False
|
||||||
for x_dev in x_devs:
|
for x_dev in x_devs:
|
||||||
if device["name_contains"] in x_dev.name:
|
if device["name_contains"] in x_dev.name:
|
||||||
x_dev.fail_ok = fail_ok
|
matches.append(Device(x_dev.name, x_dev.id, fail_ok))
|
||||||
matches.append(x_dev)
|
|
||||||
matched = True
|
matched = True
|
||||||
if not matched:
|
if not matched:
|
||||||
raise Exception(f"No device found containing {device['name_contains']}.")
|
raise Exception(f"No device found containing {device['name_contains']}.")
|
||||||
|
Loading…
Reference in New Issue
Block a user