Skip to content

fix(enable_assoc): prevent AttributeError and remove dead code#27

Open
CoderFX wants to merge 2 commits intoSniffleupagus:mainfrom
CoderFX:fix/enable-assoc-safety
Open

fix(enable_assoc): prevent AttributeError and remove dead code#27
CoderFX wants to merge 2 commits intoSniffleupagus:mainfrom
CoderFX:fix/enable-assoc-safety

Conversation

@CoderFX
Copy link
Copy Markdown

@CoderFX CoderFX commented Mar 12, 2026

Summary

  • Initialize self._ui = None in __init__ to prevent AttributeError if on_webhook is called before on_ui_setup
  • Remove unused method and shadowed path variables in on_webhook
  • Fix logging.exception() usage (pass message string, not exception object)
  • Remove unused Touch_Screen import
  • Remove empty on_touch_press handler
  • Fix on_ui_update indentation

Builds on #25. Related to #23.

CoderFX added 2 commits March 12, 2026 14:17
- Replace bare `except Exception` with `except ImportError` for Touch_UI import
- Replace deprecated `logging.warn()` with `logging.warning()`
- Fix double space typo in __description__
- Add consistent [Enable_Assoc] prefix to all log messages
- Remove trailing semicolons
- Use logging.warning for errors instead of logging.info
- Simplify on_ui_update to use str()
- Remove redundant pass statement
- Bump version to 1.0.1
- Initialize self._ui = None in __init__ to prevent AttributeError
  if on_webhook is called before on_ui_setup
- Remove unused `method` and shadowed `path` variables in on_webhook
- Fix logging.exception() usage (pass message string, not exception)
- Remove unused Touch_Screen import
- Remove empty on_touch_press handler (only logged debug)
- Fix on_ui_update indentation/comment alignment
- Bump version to 1.0.2
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.

1 participant