From f28dc0097e55669761e7b10e145fad7d6720f4f6 Mon Sep 17 00:00:00 2001 From: Crozzers Date: Mon, 1 Jul 2024 18:34:45 +0100 Subject: [PATCH] Fix KeyError when loading settings files pre 0.21.0 --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index fa421c4..8e3b4ab 100644 --- a/src/main.py +++ b/src/main.py @@ -161,7 +161,7 @@ def find_matching_profile(window: Window) -> Optional[dict]: capture_snapshot = 0 for window in windows: profile = find_matching_profile(window) or on_spawn_settings - log.debug(f'OWS profile {profile["name"]!r} matches window {window}') + log.debug(f'OWS profile {profile.get("name")!r} matches window {window}') if window.parent is not None and profile.get('ignore_children', True): continue # get all the operations and the order we run them