Skip to content

Commit

Permalink
Fix KeyError when loading settings files pre 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Crozzers committed Jul 1, 2024
1 parent c473d9f commit f28dc00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f28dc00

Please sign in to comment.