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

Unhandled exception (local variable 'output' referenced before assignment) #367

Closed
multiplie-fr opened this issue Nov 3, 2023 · 1 comment

Comments

@multiplie-fr
Copy link

Unhandled exception (local variable 'output' referenced before assignment). Please report this as a bug at https://github.com/phillipberndt/autorandr/issues.
Traceback (most recent call last):
File "/usr/local/bin/autorandr", line 8, in
sys.exit(exception_handled_main())
File "/usr/local/lib/python3.9/dist-packages/autorandr.py", line 1686, in exception_handled_main
main(sys.argv)
File "/usr/local/lib/python3.9/dist-packages/autorandr.py", line 1564, in main
detected_profiles = find_profiles(config, profiles)
File "/usr/local/lib/python3.9/dist-packages/autorandr.py", line 769, in find_profiles
closeness = max(match_asterisk(output.edid, current_config[name].edid), match_asterisk(
UnboundLocalError: local variable 'output' referenced before assignment

@multiplie-fr
Copy link
Author

--save works but when I try to load or just type autorandr I get that message.

phillipberndt added a commit that referenced this issue Mar 3, 2024
Relevant changes:

 * *2023-11-27* Several regex literal bug fixes
 * *2023-12-27* Fix #375: Listen to correct events in launcher
 * *2024-03-03* Fix #367: Skip profiles without outputs
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

No branches or pull requests

1 participant