Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NoneType object is not subscriptable error in scratchpad's smart focus #122

Merged
merged 5 commits into from
Jul 9, 2024

Conversation

axelKeizoStahl
Copy link
Contributor

The current code could try to subscript on None, which would cause NoneType object is not subscriptable error.
The fix was to change the default from None to an empty dict, then use get with default values to stop errors.

@fdev31 fdev31 merged commit f345a8f into hyprland-community:main Jul 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants