fix: Move lines=[] above lock in _read_cb() (Issue #683) #684

Merged
sl-jetson merged 1 commits from sl-jetson/issue-683-read-cb-fix into main 2026-03-18 07:49:03 -04:00

1 Commits

Author SHA1 Message Date
05ba557dca fix: Move lines=[] above lock in _read_cb() (Issue #683)
UnboundLocalError when _ser is None — lines was only assigned inside
the else branch. Move initialisation to function scope so the for-loop
outside the lock always has a valid list.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 22:36:20 -04:00