RuntimeError when "Force checking for update" button is clicked — thread already started #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In
settings_window(), a newupdate_threadlocal variable is created (line 612) but is never used. Theupdate_buttoncommand is wired toself.update_thread.start(line 618) — the instance attribute set in__init__— which is the thread that was started at launch and has already completed. Python raisesRuntimeError: threads can only be started onceif.start()is called on an already-started thread.Location
4lbion.py, lines 612–619:Risk
Clicking "Force checking for update" raises an unhandled
RuntimeErrorin the Tkinter callback, which in some environments silently swallows the error, leaving the user without feedback. In other environments it prints a traceback but does nothing. The intended forced update never runs.Suggested fix direction
Wire the button to a lambda or wrapper that creates and starts a new thread each time:
Severity
minor
Found by
Automated audit by Claude Code