From 52ff900fd2e578ba735d989a9e462192d007e0c0 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 23 May 2022 13:28:22 +0200 Subject: [PATCH] fix --- rotate-screen.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rotate-screen.py b/rotate-screen.py index 4494a3c..6c1ca8f 100644 --- a/rotate-screen.py +++ b/rotate-screen.py @@ -98,14 +98,12 @@ class Config: break if match is None: raise Exception(f"Device {device['name']} not found.") - match.fail_ok = fail_ok - matches.append(match) + matches.append(Device(match.name, match.id, fail_ok)) if "name_contains" in device: matched = False for x_dev in x_devs: if device["name_contains"] in x_dev.name: - x_dev.fail_ok = fail_ok - matches.append(x_dev) + matches.append(Device(x_dev.name, x_dev.id, fail_ok)) matched = True if not matched: raise Exception(f"No device found containing {device['name_contains']}.")