hyprland-community / pyprland

Scratchpads & many goodies for Hyprland [maintainer=@fdev31]
MIT License
345 stars 15 forks source link

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

Closed axelKeizoStahl closed 2 months ago

axelKeizoStahl commented 2 months ago

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.