Closed curz46 closed 6 months ago
output_path
load_text_file(...)
Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/nwg_displays/main.py", line 519, in on_apply_button apply_settings(display_buttons, outputs_activity, outputs_path, use_desc=config["use-desc"]) File "/usr/lib/python3.11/site-packages/nwg_displays/main.py", line 834, in apply_settings backup = load_text_file(outputs_path).splitlines() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'splitlines'
Steps to reproduce
output_path
does not yet exist, pressing Apply will throw an AttributeError becauseload_text_file(...)
returns null.Steps to reproduce
output_path
for the window manager in use.